+ 2

Is it possible to use a *.dll or other lib into PHP?

Would like to know if PHP can use a lib dll or other, with the idea to protect some main functions for distribution

9th Oct 2019, 5:57 PM
Adrian Ponce de León
Adrian Ponce de León  - avatar
1 ответ
+ 1
Well finally, I found something: First check the phpinfo() if com_dotnet extension exists Then try this: <?php try { $dll = new COM('<NameOfDllFile>.<ClassName>'); //without extension '.dll' for NameOfDllFile $dll->Function(); } catch(Exception $e){ echo 'Error_COM: ' . $e->getMessage(). "\n"; } ?> So, let me know if it works for you too!!
4th Nov 2019, 6:39 AM
Adrian Ponce de León
Adrian Ponce de León  - avatar