Mutley Posted April 7, 2007 Share Posted April 7, 2007 In Cpanel, to set cron jobs in standard mode, do I simply do: GET > http://www.example.com/script.php /dev/null ... or do I just do the URL? ??? Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/ Share on other sites More sharing options...
Mutley Posted April 7, 2007 Author Share Posted April 7, 2007 Using just the URL I get: /bin/sh: http://www.example.com/script.php: No such file or directory Anyone know why? Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223612 Share on other sites More sharing options...
Mutley Posted April 7, 2007 Author Share Posted April 7, 2007 ??? Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223643 Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 are u sure that script.php exists in the given location? whe i meet problems like that and i cant figure anything out i use the file_exists() to double check... but that's just me and i'm a n00b so =) hehe Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223645 Share on other sites More sharing options...
Mutley Posted April 7, 2007 Author Share Posted April 7, 2007 I'm positive the file is there. Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223649 Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 hmm... well it seems the PHP doesn't agree with you on that =) hehe Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223652 Share on other sites More sharing options...
Mutley Posted April 7, 2007 Author Share Posted April 7, 2007 I did my root directory thing: home/manager/public_html/script.php Which says "Access Denied" So now I've found it just can't access it. Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223655 Share on other sites More sharing options...
Mutley Posted April 7, 2007 Author Share Posted April 7, 2007 CHMOD it to allow execution but now get: Status: 404 X-Powered-By: PHP/4.4.3 Content-type: text/html No input file specified Argh! I don't understand why it's so over complicated. Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223657 Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 hmmm.. this is out of my field m8... sorry, but good luck =) Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223659 Share on other sites More sharing options...
Mutley Posted April 7, 2007 Author Share Posted April 7, 2007 Found it but now it won't execute, it just does this: /home/manager/public_html/cron_add_races.php: line 1: ?php: No such file or directory /home/manager/public_html/cron_add_races.php: line 2: //#####: No such file or directory /home/manager/public_html/cron_add_races.php: line 3: //: is a directory /home/manager/public_html/cron_add_races.php: line 4: syntax error near unexpected token `'includes/sql_connect.php'' /home/manager/public_html/cron_add_races.php: line 4: ` require_once('includes/sql_connect.php');' Are there certain things I can't have in the PHP script when using it with a cron job? (the script runs fine via browser). Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223661 Share on other sites More sharing options...
Mutley Posted April 7, 2007 Author Share Posted April 7, 2007 ??? Quote Link to comment https://forums.phpfreaks.com/topic/46021-cron-jobs/#findComment-223736 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.