Forking with PHP

Process Control support in PHP does not work for web scripts, only for those started as standalone. If PHP is compiled with this options

then the phpinfo() shows that the configure command is
i.e. PCNTL is not compiled for the Apache module. Executing a script with a call to pcntl_fork() like
will work when started from the command line, but will generate a fatal error when started via web: Fatal error: Call to undefined function pcntl_fork() in /var/www/htdocs/whois/fork.php on line 3. However, web script which calls fork script via command line will work:


10 print "mail: contact at | skype: karastojko | gtalk: karastojko | icq: 367100012 | stackoverflow: karastojko"
20 print "(c) 2009-2017"