DONT BID BEFORE U READ PROJECT COZ I WILL NOT ACCEPT UR BID:
i have a device (time attendance) that send POST data to my server every 10 seconds. ( i cant control or change the way it send data)
so in my server in php file i run print_r($_POST) and it is empty, i can see the data only when i run this
$content = file_get_contents('php://input');
var_dump($content); //or i can use print_r($content);
i save those to a file and result are some json and BINARY DATA (CHECK atachment)
so how can i decode that binary or what can i do to decode the json and also see what data is send in binary?
p.s HTTP request Content-type is: [Content-Type] => application/octet-stream, application/octet-stream
THIS DIDNT WORK json_decode($content,true); coz its not all data json .
PLEASE BID JUST IF U KNOW HOW TO SOLVE IT, DONT WASTE MY TIME ,
so only bid if u really know what this is and how to soleve.
u have in atachment the php file which i recive to get data and logs file where data is saved
9 freelancere byder i gennemsnit $38 på dette job
Hello. You need to study protocol of your time device. It is a better answer. Nobody can help you without protocol of your device. If you have the protocol i can help you Regards. Alexus