Avoiding Database Overload with Memcached

PHP Sessions in Memcached

JQuery Style PHP Closure in version 5.3


#!/usr/bin/php
<?php
class Document {
private $body_closure = NULL;
protected $reflection = NULL;

public function __construct($function)
{
if ( ! $function instanceOf Closure)
throw new InvalidArgumentException();

$this->body_closure = $function;
$this->reflection = new ReflectionFunction($function);
}

public function __invoke()
{
$args = func_get_args();
return $this->reflection->invokeArgs($args);
}

public function getClosure()
{

The object oriented javascript style php class definition for PHP 5.3

#!/usr/bin/php
<?php
/**
* Mootools-style php scripting at version 5.3
* Hash-based class definition, avoiding namespaces
*/

#################################################################################
# Start Core
#################################################################################
class P{
private static $map;
private static $current_class;

public function mclass($class_name, $class_hash){
$class_name = self::clean_class_name($class_name);
self::$map["$class_name"] = $class_hash;
#a hook after the class has been made

JQuery Sudoku

HTML 5 Doctor

HTML5 drag and drop in Firefox 3.5

Why rsync is a lousy deployment tool

Unison -- a file-synchronization tool for Unix and Windows

Syndicate content