kamshory / ZKLibrary

ZKLibrary is PHP library for reading and writing data to attendance device using UDP protocol. This library useful to comunicate between web server and attendance device directly without addition program. This library is implemented in the form of class. So that you can create an object and use it functions.
GNU General Public License v2.0
198 stars 179 forks source link

No results are showed #32

Open pinkybados opened 6 years ago

pinkybados commented 6 years ago

There is no results in when i run the test.php file. There is another thing that I need to do?

kamshory commented 6 years ago

may be your firmware version is different

ghost commented 6 years ago

Hi @kamshory, I am also getting the same problem. The device is ZKTeco K40 with firmware version 4.0.1

pinkybados commented 6 years ago

Thanks @kamshory. Now I am descarting all the possibilities, maybe the php vesion is different, I am testing on XAMPP v.3.1.0 and PHP v5.4.7. Is the library compatible? Also The firmware device is 4.0.1(build 74), Is the firmware compatible?

bjrukin commented 6 years ago

I don't think it is php version that is causing the issue. k40 is not supported.

DJSamet commented 6 years ago

I am new here, i am using ZKTime eco K40. I get no response except for "Cheers". Below is my code. . . . Please Help Me, I am using XAMPP.

Yes, The datas do exists. Yes, I've Enabled sockets.dll and soap.dll in php.ini file.

I am very amateur... Give me suggestions.. What is the problem?

    <h1>Cheers</h1> <!--RESULT SHOWN -->
    <?php
    include "zklibrary.php";
    $zk = new ZKLibrary('192.168.100.201', 4370);
    $zk->connect();
    $zk->disableDevice();
    $users = $zk->getUser();
    foreach($users as $key=>$user)
    {
        echo $user[0]; //NO RESULT
        echo $user[1]; //NO RESULT
        echo $user[2]; //NO RESULT
        echo("OK"); //NO RESULT
    }
    $zk->enableDevice();
    ?>
DJSamet commented 6 years ago

@tekrajchhetri : Bro, kei pragati xa ta ZKTime eco K-40 device ma??? Tapaile kei milaunuvo vane malai ni vannu haai....

ghost commented 6 years ago

@DJSamet : After some research, I got to know that it needs to have push data technology in order to be able to send data back, which this device doesn't have. Using this device it's not possible for what I wanted to achieve i.e. Push data to cloud / remote server and access via the internet. If you are working on the same thing then I guess we're working on the wrong device.

DJSamet commented 6 years ago

@tekrajchhetri : Bro, teso vaye kun chai device use garda easy, cheap ra best hunxa?? Any suggestions??

ghost commented 6 years ago

@DJSamet : check this out GBS(WiFi) Biometric Attendance Management with Unlimited Cloud Storage for Lifetime at zero maintenance, Android and iOS App support, Reports Downloadable Globally . You literally have to do nothing, they'll provide lifetime hosting for free, also they have Apps for both IOS and Android. You wouldn't get any products in such price.

DJSamet commented 6 years ago

Thank You For Your Suggestion!!! The device you suggest is very very nice. . . . But, the problem is that i need to build it on pure nepali (nepali_website) . . . So, i have a question @tekrajchhetri . . . Does that GBS device's cloud server provide us the capability to fetch datas and upload user datas from their server to ours ? ? ?