I'm trying to run a shell command using the backtick operators, but the fact that the child process inherits php's open file descriptors is problematic. Is there a way to keep this from happening?
I'm running PHP 5.1.2
I'm trying to run a shell command using the backtick operators, but the fact that the child process inherits php's open file descriptors is problematic. Is there a way to keep this from happening?
I'm running PHP 5.1.2
The only way I really know of is to have the children open up their own resources after forking.
There is a fairly decent tutorial on pcntl here:
http://hudzilla.org/phpwiki/index.php?title=Miscellaneous_topics
http://hudzilla.org/phpwiki/index.php?title=Duplication_of_resources_when_forking