[suPHP] SuPHP recursive forking
Sebastian Marsching
sebastian at marsching.com
Thu Sep 25 12:38:08 CEST 2008
Hi,
J.D. Tysko schrieb:
> We have a PHP application which needs to exec off another PHP process.
> The problem is, is that when we use a command with "php" in it,
> recursive forking is started.
When PHP is called and the CGI specific environment variables (like
PATH_INFO, PATH_TRANSLATED, etc.) are set, PHP executes the script
specified by this environment variables and not the script specified on
the command line.
Therefore after forking, before executing another instance of PHP you
have to unset all the CGI environment variables in order to make PHP
execute the right script.
Regards
Sebastian
More information about the suPHP
mailing list