steveangelis Posted August 5, 2008 Share Posted August 5, 2008 Yes that fun subject I have a cron I am trying to write, my CPanel does the writing for me but I know that crons and php hate eachother. As of right now, this is how it is for me besides the time part: lynx -dump /home/neraxian/public_html/game/cron/update1.php I have tried without the first part and dump, I have tried with I have tried full extenstion, but nothing. Does anyone know where I am going wrong with this? Link to comment https://forums.phpfreaks.com/topic/118203-crons/ Share on other sites More sharing options...
trq Posted August 5, 2008 Share Posted August 5, 2008 lynx expects a url, not a path. if you want to execute your script via the php cli (providing a path) it would look more like... /usr/bin/php /home/neraxian/public_html/game/cron/update1.php Also, cron has a pretty limitted environment so its always best to use full paths to programs. Therefore, to have lynx request your url use something like.... /usr/bin/lynx http://yoursite.com/update1.php Link to comment https://forums.phpfreaks.com/topic/118203-crons/#findComment-608297 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.