I’ve developed one library about security and make as a .dll package. Now, I want to use the dll through PHP because my significant webdesign skill is PHP, not ASP.Net. The other reason is that I don’t prefer to install two different web platforms in a non-enterprise server.
I’ve searched some tutorials about that how to use or develop dll in PHP. To my knowledge, there are at least two ways to apply.
Develop One Self-developed C/C++ .DLL File
The dll can be only written by C++. After completing .dll file, I just put the dll into the ext_dir of PHP and set some configurations in php.ini . There are some resources listed in below:
Use COM/DOTNET Classes in PHP
The another way is that use COM/DOTNET classes built in PHP to call self-developed COM assembly objects.