Merging C++ code in php application

Supra

New member
Merging C++ code in php application

Is it possible to use C++ functions in web php application?
 

darkstar

New member
it depends

php is based on C++/C and it is written in C so most of the function are alike. if you are talking about using pure C++ code in your PHP App then it is not possible unless you want to compile your c++ code as a module to the PHP inteself and then using your function throw PHP. this will require recompiling php everytime you change anything in your cpp code.
 

matroz

New member
not correct

you may compile the cpp code seperatly if you use enable_dl directive, and load the cpp module from your code. dl(´gd.so´); check the manual for the dl function.
 
למעלה