php console

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
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

php console

Post by dull1554 »

is there a command that i can run in a script thats running in the console that will reload the script thats running?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It wouldn't reload but create a new instance of the script without terminating the current instance.
jamiel
Forum Contributor
Posts: 276
Joined: Wed Feb 22, 2006 5:17 am
Location: London, United Kingdom

Post by jamiel »

Set an exit status, then use a bash script to execute your PHP script, then if the exit status is a warning then execute the script again.

Otherwise just use a php script that executes your php script and looks for certain output to determine whether to run it again or not.
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

ok, im really new to this whole console thing...

if i was to just have the occurance thats running open a new occurance, would there be a way, under win32 to have the new occurance check for identicle processes and terminate the oldest occurance?
Post Reply