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
$browser = new COM ("InternetExplorer.Application");
and it done successfully.
but when I tried to call my dll which name is 'zkemkeeper.dll'
and have a method which name is 'CZKEMClass'
I tried this code
Code: Select all
<?php
com_load_typelib('zkemkeeper.CZKEMClass');
$obj = new COM("zkemkeeper.CZKEMClass") or die("Unable to create com object");
?>'Failed to create COM object `zkemkeeper.CZKEMClass'