Mohit Jain
Mohit Jain

Reputation: 43939

how to link c++ program with HTML page?

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

Answers (4)

Jared
Jared

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

Paul Shoemaker
Paul Shoemaker

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

Nikolai Fetissov
Nikolai Fetissov

Reputation: 84159

What you are after is CGI.

Upvotes: 4

Arkaitz Jimenez
Arkaitz Jimenez

Reputation: 23178

Check CGI and FastCGI technologies.

Upvotes: 15

Related Questions