PHP on the Backend (part 2)
To run the class I posted yesterday, I typically use a class called DaemonRunner. This class sets up for proper signal handling, and ‘executes’ the class extended from Daemon.
declare(ticks=1);
class DaemonRunner {
public static function exec($className) {
$argv = $_SERVER['argv'];
[...]
