Best method for a PHP script to communicate with an application?
<p>I'm currently writing a c++ application for a linux server which basically handles requests (I haven't coded the part handling the requests yet, as I'm not sure of the best method).</p>

<p>Basically I have a PHP page that when fired (client hits the page) needs to communicate with the above mentioned application.</p>

<p>Now I can't fire off this application each time it's needed, as it's a rather complex application that needs to load data before it can do any processing (so it should just stay loaded forever as a daemon).</p>

<p>How would you suggest I have the PHP page make requests to the application?  Should I just use socket programming with TCP/IP?</p>

<p>Thanks in advance!</p>
