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. 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. 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? 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" 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. Link to comment https://forums.phpfreaks.com/topic/63215-c-and-php/#findComment-315086 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.