Does anyone know if it's possible to connect to a server via a certain port and send a raw command to it using PHP.
I have written a standalone server app to communicate with a client app via port 899, but now I need to get PHP to send a command such as 'DELETE 123' to that program on that port.
I had a go with fsockopen but get 'Connection refused' error, but the client app running on the same machine (The PHP server) connects fine.
Any ideas would be appreciated.