Can I Make A PHP Script Run FOREVER? OR Meta-Refresh maybe..
Posted: Thu Jan 30, 2003 7:40 am
I have a PHP script that I want to run FOREVER. IE, never end, either that OR I want it to refresh after it runs each time.
My original thought was to set an HTML meta-refresh tag, HOWEVER, I'd like to run this on Unix using Lynx, but Lynx does not follow meta-refresh tags ( does anyone know how to make it follow meta-refresh? )
It's been suggested I use Cron to schedule it, but theres no way to know how long the script will take to run, ie sometimes it takes 20 seconds, sometimes it takes 2 seconds.
It just runs queries on a database, and I'd like to have it run for MONTHS at a time, does nayone have any ideas? Can I turn off the script execution time limit? Will PHP / Apache crash if I do this and let it run for 3 months at a time?
My original thought was to set an HTML meta-refresh tag, HOWEVER, I'd like to run this on Unix using Lynx, but Lynx does not follow meta-refresh tags ( does anyone know how to make it follow meta-refresh? )
It's been suggested I use Cron to schedule it, but theres no way to know how long the script will take to run, ie sometimes it takes 20 seconds, sometimes it takes 2 seconds.
It just runs queries on a database, and I'd like to have it run for MONTHS at a time, does nayone have any ideas? Can I turn off the script execution time limit? Will PHP / Apache crash if I do this and let it run for 3 months at a time?