cobisja / tad-php

PHP Library for ZK Time & Attendance Devices
MIT License
212 stars 160 forks source link

get_att_log not working #19

Open stainless77 opened 7 years ago

stainless77 commented 7 years ago

hi, i am unable to get attendance logs using the function 'get_att_log', returns "No data!". note that i am able to get user info all, get dat etc but unable to get attendance log. kindly help

asule90 commented 7 years ago

i'm having the same problem. Any luck?

stainless77 commented 7 years ago

hey, I got the attached script working. To use it extract the zip, paste the folder to your root folder e.g htdocs for xampp. then load command prompt from the folder, so that the path loaded in cmd is the path of the pasted folder...then in command prompt type "php index.php IPOFTHEDEVICE DEVICEPASSWORD logs
you can play around with the code to suit you, but it worked for me. zkphp.zip

asule90 commented 7 years ago

wow, that's awesome..

thank u so much... :)

aries288 commented 7 years ago

please stainless77 Download the file but I can not make it work you can explain a little

Kamran2452 commented 6 years ago

Can you please send me the code i am new to this and i am not able to connect the machine with PHP i am using ZKTECO k40. And it do have web server support in it.

KashifAliTZ commented 5 years ago

@stainless77 can u please give an example how to use ur lib. I am using it like php index.php myip 0 but it gives me {"response":500,"data":{"message":"use the format: php index.php 'device_ip', 'com_password', 'function', 'function_data'"}}

animfahmy commented 5 years ago

@stainless77 can u please give an example how to use ur lib. I am using it like php index.php myip 0 but it gives me {"response":500,"data":{"message":"use the format: php index.php 'device_ip', 'com_password', 'function', 'function_data'"}}

Please write your code here.

KashifAliTZ commented 5 years ago

i don't write any code, i just use zklib Shared by @stainless77