Trying socket.php with socket_read and modified the .cpp a bit.
Merge branch 'master' of https://github.com/rebeccamurphy/Hackathon-2013

Merging with what Jip was doing.