How to connect to a node using PHP
I was sending the data across the socket in hexadecimal format, but it appears that it should be in binary.

This does the trick: hex2bin($message)

Link to just-about-working script: https://bitcoin.stackexchange.com/a/48399/24926