Using Cron with PHP
Posted: Sat Nov 02, 2002 12:35 am
I work for a site with a couple of online games (second link in my signature) and we've decided to use Cron to update the information... I have experience with crontab itself and I have set it up properly (meaning the dates and times to run the file); however, it generates errors when running the file (crontab emails me after each run with the results)... I simply used the location of the file as the program to run and it seems to not want to run .php ...
Basically, is there a way to set it up so that it DOES run the php file as expected or should I run it in a browser (I've just this minute set it to execute "lynx myfile.php")..? And if the browser solution is the way to go, does it automatically close lynx after the page is loaded..? This is necessary as we are hosted elsewhere and I don't believe we're allowed any background processes...
Thanks in advance, if the lynx method works, I'll post back...
Basically, is there a way to set it up so that it DOES run the php file as expected or should I run it in a browser (I've just this minute set it to execute "lynx myfile.php")..? And if the browser solution is the way to go, does it automatically close lynx after the page is loaded..? This is necessary as we are hosted elsewhere and I don't believe we're allowed any background processes...
Thanks in advance, if the lynx method works, I'll post back...