Skip to main content

Run php file on cron job passing vars

Comments

2 comments

  • rpvw
    The following may be what you are looking for
    Hi, We've fixed this a while back. You can now call '/usr/local/bin/php' if you need the php-cli binary, and '/usr/bin/php' if you need the CGI variant. If you call 'php' only via the CRON, you're going to end up using the CGI binary, since '/usr/bin' comes first in the CRON $PATH. I hope this helps!

    0
  • JacobPerkins
    Hi, You also need to turn on register_argc_argv in your PHP configuration to get this to work.
    0

Please sign in to leave a comment.