Run php file on cron job passing vars
Hi actually i had this cron job
php -f -q /home/lazybkp/public_html/classes/scClass.php?notifyAdmins=true
But it didn't work, it's because at the end of the script i'm passing this vars ?notifyAdmins=true
How can i make it work?
Thanks in advance
-
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 -
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.
Comments
2 comments