php.netdesktop-applicationcommunication

Share data and communicate between php code and .Net application on the same server


For my college project i wish to make a website(PHP) that communicates(possibly in realtime) with a .Net desktop app(WPF) on the same server.Being a complete noob with php,i do not see any way to do this directly,any help in the right direction just to get me started?

EDIT: App is a WPF desktop app in C#


Solution

  • You might like to take a look at socket programming.

    Let your C# app open a socket and listen to it.

    Your PHP then connects to that socket, either requests information or sends information. And you are done. No need for polling.

    Listen to the socket in an asynchronous way.