Are there any tutorials or examples on making a C++ dll module for php, and how to use it?
Printable View
Are there any tutorials or examples on making a C++ dll module for php, and how to use it?
You can create an instance of a DLL object if it is registered on the system. When creating the DLL, bear in mind there is no interaction with the user and that the request must be served in a single thread. That said, there is no reason why you cannot use background worker threads.
Have a look at the COM functions: http://uk2.php.net/com
This is pretty out of date but it was the only article I could find after a quick search. It should give you a rough idea, at least. Perhaps the php.net site has more information.
http://www.devnewz.com/2002/0909.html