A re-worked copy of the PHP script that ships with the GPSD project.