Connecting Tech Pros Worldwide Forums | Help | Site Map

pcntl_fork()

chri
Guest
 
Posts: n/a
#1: Mar 5 '08
I've compiled php with the option --enable-pcntl but when i call the
function "pcntl_fork()" i obtain the error:
"Call to undefined function: pcntl_fork()"
Where is the bug? Have i to modify php.ini too? If yes, how?
Server configuration is: Apache2 2.2.3 and Debian 4.
Thanks

Jerry Stuckle
Guest
 
Posts: n/a
#2: Mar 6 '08

re: pcntl_fork()


chri wrote:
Quote:
I've compiled php with the option --enable-pcntl but when i call the
function "pcntl_fork()" i obtain the error:
"Call to undefined function: pcntl_fork()"
Where is the bug? Have i to modify php.ini too? If yes, how?
Server configuration is: Apache2 2.2.3 and Debian 4.
Thanks
>
You need to be using the cgi or cli version of PHP for this to be
available. Additionally, see the note at
http://us.php.net/manual/en/ref.pcntl.php:

"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."

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Closed Thread