So this is a tad more Linux/Unix than php, but I had a need for a php script to run every 5 minutes to do some email tasks.
But It's getting more complex and has more tasks to perform and I'm at a point here I believe it would be best if it just kept running all the time.
So this is PHP code... what would be the best way to handle that?
What I'm thinking is a PHP script with endless loops ....or continous loops with sleep parms.
I'm not real educated on scripts or cron but currently it's started by a gui cron task interface. I'm thinking I could use that to start it or I've seen enough examples I think it could be just started via a command.
So what do I need to be concerned about? PHP scripts in loops a good way to go? Is there a more appropriate Linux solution for a 24X7 task? How could I write an shutdown interface? Or is there a cancel command?
Just running it thru my head. Any advice and thoughts are welcome.
thanks,
kc