|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Quote:
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. Quote:
Once your extensions are done and compiled with PHP, you would call them like any other function in PHP: PHP Code:
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
hi,
I write some php extension with c++/delphi, finally I find the best way is creating apache mod, then load form apache config-file.
__________________
software reviews |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|