sachin
Hi, I am learning PHP programming.
Is it possible to Include C++ API in PHP class and how can we call C++ method in PHP.
means how to integrate PHP and C++?
Can i know good online tutorials on PHP available on net.
jpenn
Hi, I am learning PHP programming.
Is it possible to Include C++ API in PHP class
Rather than include a C++ API in a PHP class, just build an extension to PHP in C++. By doing this, you will open up a whole new (extremely powerfull) world to PHP.
how can we call C++ method in PHP
Once your extensions are done and compiled with PHP, you would call them like any other function in PHP:
sachin_do_something();
sachin_do_somethingElse();
The above functions would always be available to the PHP build on the server for all domains running on that server/build.
The DBX library is a good one to look over, pretty well documented. Also, check out the tutorials on ZEND on building dynamic loadable libraries - believe the tutorial is called extending PHP.
thisisme
HI Jpenn,
What is wanted to know is how do I create this c++ extension for me to open this world.
Thanks for any help.