tags:

views:

210

answers:

3

hi i am new in php,i made the whole code in c++ and want to use this code in php.so i made dll to my code for using it.but i am not able to use this dll in php ,can anybody send me the complete code to use php,c++ extensions.

+1  A: 

There is a good article here. Otherwise, Google is your friend.

musicfreak
A: 

I made a PHP extension in C++ using SWIG. The PHP specific documentation can be found here.

Since very few online documentation is avaible on using the Zend API I also recommend the book Extending and Embedding PHP.

StackedCrooked
+1  A: 

There's a whole section about some php internals and how to write/build a php extension in the online manual at http://php.net/internals2, and I especially want to point out the description of the ext_skel script there as it helps you to set up a new "empty" extension project.
And there are alos tools like SWIG that help you to wrap existing libraries into extensions for numerous languages including PHP.

VolkerK