I want to execute a php script regularly, and for that reason I created a cron job through WHM. The file is indeed executed, but it fails to do so correctly. I receive this error:
/home/site/cron.php: line 1: ?php: No such file or directory
/home/site/cron.php: line 3: =: command not found
/home/site/cron.php: line 4: =: command not found
etc.
After searching I find this has to do with the format of the script. I wrote this as if it is made for usage through a browser, but now I read that it should be adapted in order to work as a cron. However, I can not find how to change this. Anyone any ideas?



LinkBack URL
About LinkBacks
Reply With Quote




