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

install
then the phpinfo() shows that the configure command is
configure
i.e. PCNTL is not compiled for the Apache module. Executing a script with a call to pcntl_fork() like
fork.php
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:
test.php

ready.

10 print "mail: contact at alepho.com | skype: karastojko | stackoverflow: karastojko | github: karastojko"
20 print "(c) 2009-2023 www.alepho.com"