Update to PHP4 Version

I needed a version that worked in PHP4 - quick and dirty.