Does anyone see anything here? the cron I am running is this: /home/myuser/public_html/folder/cron.php But I get this error: /home/myuser/public_html/ups/cron.php: line 1: ?php: No such file or directory /home/myuser/public_html/ups/cron.php: line 2: syntax error near unexpected token `"config.php"' /home/myuser/public_html/ups/cron.php: line 2: `require_once("config.php");' If I open the file cron.php in my web browser, it executes flawlessly. All I want cron to do is basically open the file...
/folder and /ups are the same (i.e. a typo in this thread)? The ?php seems to suggest it has troubles parsing PHP. Try instructing it explicitly to parse through php: php -q /home/...etc... If on windows, add this to the first line of the script: #!/usr/local/bin/php -q
Whoah! You lost me Yes, that was a typo in the thread. so I add "php -q " before the cron? Yes, linux