Reputation: 43939
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??
Upvotes: 2
Views: 7156
Reputation: 39887
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
Upvotes: 5
Reputation: 136
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.
Upvotes: 3