ZKLibrary icon indicating copy to clipboard operation
ZKLibrary copied to clipboard

Only connect when access by localhost

Open ducduyx87 opened this issue 6 years ago • 4 comments

Someone have issue only connect when use localhost

ducduyx87 avatar Jan 10 '19 07:01 ducduyx87

I use this library on my local area network both wired and wireless and it works.

kamshory avatar Jan 14 '19 11:01 kamshory

I try to use Port Forwarding and my problem is done.Now i want to set time to get Attendance, you have solution for this :)) thank for support

ducduyx87 avatar Jan 15 '19 03:01 ducduyx87

I cant connect the test page just stays blank. When I try to use echo outputs to tell when it stops running, anything after creating the zk object is not executed. kindly help

connect(); if ($zk->connect()){ echo "success"; } $zk->disableDevice(); $users = $zk->getUser(); ?> $user) { $no++; ?>
No UID ID Name Role Password
$zk->enableDevice();

echo "Device Enabled now";

$zk->disconnect();

?>

Any error in this?

wombiro avatar Jan 18 '19 17:01 wombiro

`<?php include "zklibrary.php"; $zk = new ZKLibrary('192.168.1.96', 4370); $zk->connect();

if ($zk->connect()){

echo "success"; }

$zk->disableDevice();

$users = $zk->getUser(); ?>

$user) { $no++; ?>
No UID ID Name Role Password
$zk->enableDevice();

echo "Device Enabled now";

$zk->disconnect();

?> `

wombiro avatar Jan 18 '19 17:01 wombiro