Unit Testing PHP with PHPUnit

For a background on Unit Testing in general, check out the post on Unit Testing Overview. Example PHPUnit Tests If you have installed PHPUnit and want...

Examples of Memcached with Node.js, Python and more

Node.js Additional Documentation var Memcached = require('memcached'); var memcached = new Memcached('127.0.0.1:11211'); var lifetime = 86400; //24hrs // Add first entry to cache...

Singleton Pattern on PHP

Concept: A creational pattern. You basically need one "global-type" object to exist. Implementation is pretty cut-and-dry using PHP. Pros: We can be sure that there is...