+ 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
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!!