Page 1 of 1

Call dll from PHP

Posted: Wed Apr 23, 2008 9:30 am
by monada
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
$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");
?>
I got this error:
'Failed to create COM object `zkemkeeper.CZKEMClass'

Re: Call dll from PHP

Posted: Wed Apr 23, 2008 11:31 am
by Mds
hi .
What would you like to do , exactly , that you want call DLL ?

Re: Call dll from PHP

Posted: Wed Apr 23, 2008 12:07 pm
by mattcooper
<sucks air thru teeth />

Re: Call dll from PHP

Posted: Mon Feb 13, 2017 1:23 pm
by jlongino
Hi:

Are you solved this problem with zkemkeeper.dll???

I tryed with this code:

<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);

$zk = new COM("zkemkeeper.ZKEM") or new Exception();

if ( $zk->Connect_Net('192.168.188.247',4370) ){
echo "Conectado";
} else {
echo "No Conectado";
}

$zk = null;
?>

Don't send me errors, but not connect with the fingerprint reader.

Thank's

pd
This are the new dlls http://www.zkteco.eu/uploads/ftp/SDK/Ne ... 32bits.zip