Communicating with a C# application from PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Communicating with a C# application from PHP

Post 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
User avatar
robshanks
Forum Commoner
Posts: 32
Joined: Sun Aug 05, 2007 9:27 pm
Location: Hull, UK

Post by robshanks »

Maybe the socket family of functions:

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