Clayton turned 1 month old yesterday
See some photos!
Related posts
Where’s Muppet? (0)
Thanksgiving in St. Louis (0)
Marshall gets his revenge (0)
Lily and Marshall adjust (0)
Happy Easter (0)
See some photos!
Related posts
Where’s Muppet? (0)
Thanksgiving in St. Louis (0)
Marshall gets his revenge (0)
Lily and Marshall adjust (0)
Happy Easter (0)
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'];
[...]
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 [...]
Memcache is an extension written by Danga for simple Key/Value pair caching for use with your favorite programming language. In this talk I demonstrate how to install, integrate, and leverage Memcache in PHP (using MySQL for a database). I build a sample application, demonstrate less than desirable performance and finally, return performance with [...]