Sticking the Fork In

Whilst PHP is not the best tool for creating daemons, it does come fully loaded with the ability to fork, share memory, manage child processes etc. through the PCNTL, POSIX, Socket, SHMOP and System V Semaphore (sysvsem) extensions.

Indeed, daemons in PHP are generally a bad idea but they can be very useful when applied carefuly.

Related Posts