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
194 stars 176 forks source link

Getting Fingerprint Result To Unknown Character #77

Open aice09 opened 4 years ago

aice09 commented 4 years ago

I am using the following code to check the fingerprint template:

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

 $users = $zk->getUserTemplateAll(1);
foreach ($users as $key => $value) {

    foreach ($value as $key1 => $value1) {
        echo strval($value1)."<br>";
    }
}
?>

But the following data I recieved:

1188
1
5
1
�M�SS21�� ���i�E&��S�?����]��[���s�F�~~!D�����-���������hw��9�t�Ș:�?h���=n���C���Q����u�q�L X��!�!���$���-��(&�-�DR)��-E_�2�|4)y;���A�x�O5����;U9�Z���>���w�:[�x#���6���G��f����}����]����g\����_�Rg�1{:�M�G�~Ē���m��E��}v�#��s��������������lye��m�n�EV��^e�pV&��خ�tɇ�i�z���L�ID�����|<�w��Q���g�:����� ���j!T����6�>���n�W�l���o��"�J� s�M��k7�F��.L��94�7d?��05w`7g[6: ����C�w"� \�M����dTm�X� sa���o\�ab� �g����5�tE\������SB�;�W�FD;eR��0�2��[���������g��������: N�'":dl�UUӧ���Q>JJ���ԧ���:�����;����g����������x�U�4�����<���GD�d[�;��q���� �WXWG�˂x��;��p�h���p�F�h������f������:��X���������t�{ ��mX��~�&J��䐒���Z����O�f�X��" ��鉌Sy�\���J��d��C�q }ĥ �Ps���+6<�L�[�����M����|��g�!�~I���"'�;��#�o�����#�kS��[��WT���c��FE%-���)+����)"��D�G�HO�F�T,@x�д&TI-���.F��/G�_27���6)���8)Z��C'�'B+��]E)�^L��9��`���U� �tX(�����":i�{\����u*��FRB�� ER
1052
1
6
1
MSSS21 ��i�='c�U|OQ:��C�J�� ��S �cU��$-������:�wO��93�;�������:��@1�"��z��0�'9{�A��GH���4�1��05�pv!@���,�=)�33�29����C3B�-Jc��\f��n����]�=vm� ���~,X��P9,�� ԍ�$�eZe�|��`}\,�5�&t�0����坉����~��x8���-!�;|���!� w���(��ρ�Ѐ������i8�|' k���ڏ�z�0u����}a�t^�Ā�z ���X�V �������w�3���$.�2�������� ��9l��A��v��*����j�F��1 9�y �8mx��8�_n�=kx�r�@}�¡�����s��z�ge�~d��WLr��U�uN~��\jsjŷPd���\|�d���������at�����`��it���n���pw����x���x�Y�z}�q�~���4�a�[�Q��m���Sbr�z�G�wQtZ��Ȓ������;�]������9C���%���=���V�f}Y���`FN��mZ�e�S��nrmYŦ�C���r]Y���[���{��ǽ���™���7�� D�M�����aŏ�\n�tS��:��@�e�3�O��F�p_� ��FN��B�x�Dž��F ��@g�X���7�[�#Cs�)H��7�D���1]���k�8b�I�:Ukh�F�E��z�F~S��C�G�hm�5{�� ���������� n4HY����:�%�o S�Zu$�U�'7)Օ2*i�F7RF C�R
914
1
7
1
�J�SS21�� ���i��2�v��.��1��<�,*D�2�GF�B��]2�r�5�xt6�z5|����~��|�4����<|^2�c��qֆ$��k����%7��u��`����Vm��c������wM�*Jʄ���K�x�냇Ъ����F�F��7&A.��������|�v�I���:�����b���V qX2 �!�2����s���|x���Έt�&�`����'�A p�j��E ���q�����/�|��~��^y#�[�d��C n��E�� z����T�"�"6�X!� L�:L�FOY;B�D��d;�Y�62ŭ���<.�F��>�j�;� �4'��?�,m��]EY"J8RhFW��,��:��-1m�4-R W���G��Ñ�A*yS ,B�<�L�ZC-���q��4E7:��xw�\l���II�b�d����1J@s�>I�DE�Q����NI��R4F�� �Fh�\@Y���5�\Z�0HG�x���|�I�1U���o���*Xj /�:gy�k�9�7�{l\� 4�7�GQRŒ ��3G[�y�G-o�L�4�B����@����=�U����=Ve��2� u�4g�)�:g��Ħ�ש8e���G��������x����xŗݘ��&��v/����'0����G�����¡k��g�����;��f�ûg8Y�d�lZP����CC�F�
750
1
8
1

What is that? and how can i get the fingerprint template?