Page 1 of 1

Persistent PHP Processes

Posted: Wed Aug 07, 2002 1:39 am
by DesignerSMS
Hi Everyone,

Thought I would post up one of the hairier questions that I have about PHP.

Because I could not get a background process to work under windows (ses a few topics down) I have decided to get two PHP scripts to work independantly of each other.

This involves one script writing to a database and the other polling the database at regular intervals for new information. If it finds new informatino, then it needs to process it.

I have created both the *client* and the *server* scripts and they work well together. However, one thing I can see hapening in the future is that the server script will shut down and I will not know that this has happened.

My question is:

Is it possible in Win2K to get a script to run and, if it crashes, start up again?

This should dislodge some grime from that underused PHP knowledge out there.

Thanks for all your help.

:: Kondro ::

Posted: Wed Aug 07, 2002 4:26 am
by daemorhedron
not too sure under windows. maybe see if this can help you :

http://www.firedaemon.com/

HTH

Posted: Wed Aug 07, 2002 4:45 am
by DesignerSMS
That application is great.

I can't believe how hard I've searched for something like that (not just for this project either).

Thanks a lot daemorhedron :lol:

:: Kondro ::