chantown Posted June 14, 2009 Share Posted June 14, 2009 For example. In my index.php, I have a simple text box. I put in a word, and click Submit. I want to have my C++ script analyze this word, and do some calculations. Then, I want to pass this back to my PHP, and spit out the length, etc. to the audience. The question is: How can I use both PHP and C++ to do things?? Thank you! Link to comment https://forums.phpfreaks.com/topic/162086-how-can-i-use-php-with-c/ Share on other sites More sharing options...
MadTechie Posted June 14, 2009 Share Posted June 14, 2009 i can think of 3 options, create a C++ App and pass the file to it, or re-complie php with a C++ class wrapping a class into PHP itself, finally create a COM Link to comment https://forums.phpfreaks.com/topic/162086-how-can-i-use-php-with-c/#findComment-855326 Share on other sites More sharing options...
pkedpker Posted June 14, 2009 Share Posted June 14, 2009 use php-cgi.exe which is what most custom webbrowsers use I believe they just paste the php file into the php-cgi as a argument and it returns a rendered result Link to comment https://forums.phpfreaks.com/topic/162086-how-can-i-use-php-with-c/#findComment-855458 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.