Page 1 of 1

Communicating with a C# application from PHP

Posted: Mon Aug 06, 2007 1:07 pm
by Trenchant
I'm working on a project where a C# application sends information to my database with HTTP post requests. That part works fine. I'm getting information from the software. But now I want to be able to send messages to the server(without having them receive a message when they send information). This will have several hundred servers sending post requests in so I don't want them all checking in every minute with a "ping" type thing to check for messages.

Is there some kind of packet setup in PHP I can use to send a packet of information to a c# application? I have the server's IP address's in databases so that isn't a problem. I remember seeing something like this before but it's been several years.

Any recommendations/links?

Thanks,
Luke

Posted: Mon Aug 06, 2007 4:18 pm
by robshanks
Maybe the socket family of functions:

http://uk3.php.net/manual/en/function.socket-create.php