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 135 forks source link

attendancedata ID=0 #19

Open yesersin opened 7 years ago

yesersin commented 7 years ago

Data Attendance Index UID ID Status Tanggal Jam 0 37303 0 Check In 21-06-2017 13:28:24 1 37304 0 Check In 21-06-2017 13:56:44

Why is ID always 0 ? Why are not real values ​​coming?

adiirawan23 commented 7 years ago

solve?

suryacaprice commented 7 years ago

i have the same issue

RahamSher commented 6 years ago

Dears @suryacaprice,@adiirawan23 & @yesersin,I have the data but please guide me that how i differentiate check in and check out of a user,please I am stuck over here.

z3r0101 commented 6 years ago

I have the same issue. To fix this, open the file /zklib/zkattendance.php Look for: $id = intval( str_replace("\0", '', hex2bin( substr($u[1], 6, 8) ) ) ); Replace with this: $id = preg_replace('/\D/', '', str_replace("\0", '', hex2bin( substr($u[1], 6, 8) ) ));

I hope this will help.

aerojun commented 6 years ago

@z3r0101 seems to work