For quite a while unknown to me my script was not automatically running via the cron job I setup. After entering my email address in cpanel’s standard cron interface, the email I received said:
Status: 404 Not Found
X-Powered-By: PHP/5.2.5
Content-type: text/html
No input file specified.
A few minutes of searching the net uncovered my mistake. I had a url variable on the command, which cause it not to work. Instead of
php /home/mysite/public_html/filename.php?method=automated
use
php /home/mysite/public_html/filename.php method=automated .
Exclude the question mark in the url variable and that made it work.
Continue Reading
Hi I'm Nick Bartlett and thanks for visiting my blog. I'm not much of a writer; many of my posts are short and to the point while others are meant to be a reference for myself and other web developers.