On Fri, 2008-04-18 at 22:14 -0700, Waqas Habib wrote: > Can i run my php script in background?? > Suppose i want to connect to a server, that sends me (php script) some > messages. And there is a front end (GUI), which will display these > messages. i want to write a script, which sits between server and GUI, > i-e receive messages from server and send it to GUI, and runs in > background countinuously. > Any help related to this or any idea to solve this type of problem. > Thanks. > -Waqas Habib
Yes it does work, I have written a script once which compared values in a database and removed doubles. The script ran for 72 hours until it completed. I ran into problems with out of RAM errors but after some tweaking it worked quite well. I had to unset variables after each use. You can find more information here: http://de3.php.net/cli
