PHP Run proces
Posted: Tue Mar 23, 2010 7:11 am
Hi,
I want to run a PHP Program in background for 24 hours
I think i can start the program using a Crone job and it will work for 24 hours by coding it
When i tried it with an infinite loop, my program takes 99% of CPU time
How can i implement this in better way avoding infinite while loop.
I waanna run some code snippet in the program continuously, ex: checking a Database Table for
new entries.
Which is the better way to achieve this eliminating server over heads.
Thanks in Advance
I want to run a PHP Program in background for 24 hours
I think i can start the program using a Crone job and it will work for 24 hours by coding it
When i tried it with an infinite loop, my program takes 99% of CPU time
How can i implement this in better way avoding infinite while loop.
I waanna run some code snippet in the program continuously, ex: checking a Database Table for
new entries.
Which is the better way to achieve this eliminating server over heads.
Thanks in Advance