Re: PHP process control

From: Date: Thu, 07 Jun 2007 20:26:41 +0000
Subject: Re: PHP process control
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-256319@lists.php.net to get a copy of this message
Nathan Nobbe wrote:
I was reading the handbook on the topic of Unix process control. The first thing it says is: Process Control support in PHP implements the Unix style of process creation, program execution, signal handling and process termination. Process Control should not be enabled within a web server environment and unexpected results may happen if any Process Control functions are used within a web server environment. Does this mean that a machine running PHP to handle HTTP requests should not also use PHP to implement a Unix style process, or does it mean that these methods should not be called from the CGI SAPI<http://www.php.net/manual/en/features.commandline.php> . My impression is that a given machine should be able to use the Unix process control functions and handle HTTP requests as long as the Unix process control functions are invoked strictly from the CLI SAPI<http://www.php.net/manual/en/features.commandline.php> . can somebody clear this up for me?
It says that within a web server environment you should not use process control functions. It does not say that on a machine that's running a web server you should not use process control functions. A "web server environment" does not mean the entire machine. Hope that clears it up. -Stut

« previous php.general (#256319) next »