Upload original version of PHP script

The original PHP script [incomplete]