I have vast experience with C++ and internet protocols (worked in the Telecomm infustry for the last 10 years - Ericsson & Bell Canada doing network development), as well as interfacing with web services.
Your problem sounds straight forward, and I'm confident I could have it delivered in a few days... but would need a little more info to give a better time estimate.
I'll also need to know:
-what operating system is this for.
-what compiler and version you use.
-what version of PHP are you using.
-is the PHP interpreter running as a sub-system of a larger application? (ex: as an Apache Module, or perhaps loaded into a Windows app as a DLL?).
-is the PHP interpreter running locally, on an intranet or remotely on the internet?
-how is the C++ app being launched? Is it a sub-process or used as a dynamic linked module or launch by the user from command line or gui.
I look forward to hearing from you,