views:

197

answers:

4

i am working on php...!! Is it possible to link HTML page to c++/c at back end. means instead of php script i want to run c/c++ if Yes How??

+14  A: 

Check CGI and FastCGI technologies.

Arkaitz Jimenez
+3  A: 

What you are after is CGI.

Nikolai N Fetissov
+4  A: 

CGI is your best bet if the C++ program is an executable. If you want to use a C++ library from PHP you will need to write an extension. An example of this can be found at http://devzone.zend.com/article/4486

Jared
+2  A: 

I recommend the book Extending and Embedding PHP by Sara Goleman link

It is probably the best resource I have found on linking C++ libraries / routines to user space PHP functions.

Paul Shoemaker