How to wrap C++ code in PHP4?

83 views Asked by At

I found a very good example of how to wrap C++ code for using in PHP code. This is for PHP5 and it works for me.

How do I need to modify this example to use PHP4 (4.4.9-pl0-gentoo) instead? So that the example works calling php4 instead php (with the latter pointing to php5)?

I also tried to 'copy' the created vehicles.so library into the PHP4 library directory, but php4 seem to ignore this library. Could there be anything done about that? Or do I have just to compile the code with php4? (Not sure if the sentence makes sense, as I only compile C++ code.)

0

There are 0 answers