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).
Basically I have a PHP page that when fired (client hits the page) needs to communicate with the above mentioned application.
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).
How would you suggest I have the PHP page make requests to the application? Should I just use socket programming with TCP/IP?
Thanks in advance!