Persistent PHP Processes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
DesignerSMS
Forum Newbie
Posts: 17
Joined: Tue Aug 06, 2002 12:16 am
Location: Gold Coast, Australia

Persistent PHP Processes

Post 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 ::
daemorhedron
Forum Commoner
Posts: 52
Joined: Tue Jul 23, 2002 11:03 am

Post by daemorhedron »

not too sure under windows. maybe see if this can help you :

http://www.firedaemon.com/

HTH
User avatar
DesignerSMS
Forum Newbie
Posts: 17
Joined: Tue Aug 06, 2002 12:16 am
Location: Gold Coast, Australia

Post 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 ::
Post Reply