I have a program running via a cron job on my server, however instead of executing the script, it emails me the following ---------------- /home/proxy/public_html/path/my_script.php: line 1: ?php: No such file or directory /home/proxy/public_html/path/my_script.php: line 2: syntax error near unexpected token `0' /home/proxy/public_html/path/my_script.php: line 2: ` set_time_limit(0);' ---------------- So it is finding the script but it looks like it isn't running it as a php script. I am using the cpanel standard cron job function to run it, and just using the path to the script as the command. This is my first attempt at using a cron job so I have no idea what I'm doing wrong. Some help would be appreciated. Thanks
Put the php -q command before the path to the script. /usr/bin/php -q /home/proxy/public_html/path/my_script.php Code (markup):