A port of php-ga from http://code.google.com/p/php-ga to PHP 5.2.