I googled how to call dll from php.
I found that I should use the COM extension to do this.
I followed some examples that use the COM to call the Internet Explorer application and othee applications .
$browser = new COM ("InternetExplorer.Application");
and run all these examples successsfuly.
But when I tried to call my dll which name is 'zkemkeeper.dll'
that have a class which name is 'CZKEMClass'
I registered it with regsvr32.exe successfully.
and I tried this code
<?php com_load_typelib('zkemkeeper.CZKEMClass'); $obj = new COM("zkemkeeper.CZKEMClass") or die("Unable to create com object"); ?>
I got this error:
Failed to create COM object zkemkeeper.CZKEMClass
If any one know what should I do please tell me.
Regarding that the DLL I want to call is not from my implementation.
I just need to use its functionality