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! Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.