Posted by Chris Hope on 09/22/05 04:58
cmarvel@nethere.com wrote:
> I have a script using php-cgi 4.3 module. The script attempts to
> use
> the pcntl_fork() call but gets the error message "call to undefined
> function: pcntl_fork()" instead. Anyone know what's going on?
> I have Apache 2.0+, Php-cgi 4.3 Mandrake Linux 9.1.
> Here is my fork.php script:
[snip]
The pctnl_* functions are not compiled in by default. You'll probably
need to compile it yourself to have access to these functions.
Also note the following from http://www.php.net/manual/en/ref.pcntl.php
"Process Control should not be enabled within a webserver environment
and unexpected results may happen if any Process Control functions are
used within a webserver environment."
--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Navigation:
[Reply to this message]
|