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'];
. . . → Read More: PHP on the Backend (part 2)

PHP on the Backend

PHP (or any language for that matter) can just as easily be used as a daemon as on the web. This can be especially useful when solving problems that can’t “complete” in less than 500 ms which one shoots for on the web. As you write an application to handle things such as . . . → Read More: PHP on the Backend