dnaextrim / php_zklib

Attendance Machine Library for PHP with a connection to the network using the UDP protocol and port 4370
http://dnaextrim.github.io/php_zklib/
GNU General Public License v2.0
162 stars 134 forks source link

connection problem #54

Open haseebhk22 opened 5 years ago

haseebhk22 commented 5 years ago

I have change the ip address in the test but in return nothing is show on test page then i open the test and echo the connection variable and i got false means connection is not made. can anyone help me please

degeta10 commented 5 years ago

Please show your code.

haseebhk22 commented 5 years ago

Please show your code.

Here is my code `<?php include("zklib/zklib.php");

$zk = new ZKLib("192.168.2.200", 4370);

$ret = $zk->connect();
var_dump($ret);exit();
sleep(1);
if ( $ret ): 
    $zk->disableDevice();
    sleep(1);
?>`

and $ret return False

dnaextrim commented 5 years ago

For new Firmware is support ADMS, I recommend you to using AMDS, it's direct communication from Attendance machine to ADMS, then you can read database in ADMS for use in your Attendance System.

mysql: Host: localhost user: root port: 83306

password is empty