Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zkteco new device #58

Open
abdkaviani opened this issue Jul 18, 2019 · 1 comment
Open

zkteco new device #58

abdkaviani opened this issue Jul 18, 2019 · 1 comment

Comments

@abdkaviani
Copy link

abdkaviani commented Jul 18, 2019

Hi everyone

I recently bought a PFace202 Device.
My old device - MultiBio700 - it was working with "php_zklib"
But i had a problem with my new device

My problem is solved when I edited current code to this:

Best Regards

$zk 	= new ZKLib("192.168.10.201", 4370);
$ret 	= $zk->connect();
sleep(1);
//if ( $ret ):  //REMOVE IT!!!
$zk->disableDevice();
.
.
.
//endif //REMOVE IT!!!
@abdkaviani
Copy link
Author

AND in zkattendance.php replce

$id = intval( str_replace("\0", '', hex2bin( substr($u[1], 6, 8) ) ) );
with
$id = intval( preg_replace("/[^A-Za-z0-9 ]/", '', hex2bin( substr($u[1], 6, 8) ) ) );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant