DeepakJ Posted August 3, 2007 Share Posted August 3, 2007 Is it possible for one to include a PHP script into a C++ program. I basically want the C++ to be the front end dialog but have the PHP work the back end and recieve variable information from the C++ program. Quote Link to comment https://forums.phpfreaks.com/topic/63215-c-and-php/ Share on other sites More sharing options...
Barand Posted August 3, 2007 Share Posted August 3, 2007 Via xmlhttp request to php from C++ client maybe. Quote Link to comment https://forums.phpfreaks.com/topic/63215-c-and-php/#findComment-315078 Share on other sites More sharing options...
DeepakJ Posted August 3, 2007 Author Share Posted August 3, 2007 Could you elaborate or point me to a tut perhaps? Quote Link to comment https://forums.phpfreaks.com/topic/63215-c-and-php/#findComment-315081 Share on other sites More sharing options...
Barand Posted August 3, 2007 Share Posted August 3, 2007 try googling "c++ xmlhttp" Quote Link to comment https://forums.phpfreaks.com/topic/63215-c-and-php/#findComment-315084 Share on other sites More sharing options...
Barand Posted August 3, 2007 Share Posted August 3, 2007 Basically [pre] +--------------+ +--------------+ | | ---- xmlhttp request ----> | | | C++ | | PHP | | | <------- results --------- | | +--------------+ +--------------+ [/pre] The php script recieves data in a querystring (GET) and processes it, echoing output as normal. The output, instead of going directly to the browser window, is instead returned to the client to output. Quote Link to comment https://forums.phpfreaks.com/topic/63215-c-and-php/#findComment-315086 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.