i have time attendance device, it is connected with my server [login to view URL] and it is sending data to server.
-As i know it ping the server every 10 seconds, so it is sending some data via http to server.
it ping the server as i read the protocol, is for asking if server has any request for device
so it ping server---->>>> server send back to device the request ---->>>> then device replay back with data to server.
SO now i just try to recive what device send to server (ping the server) i can recive some data only if i use file_get_contents("php://input") and i put the output in file ([login to view URL])
So as i know u need to check the header and it tells what data device send - BECAUSE SOMETIMES IF IN HEADER is BIN_1 BIN_2.... body contains binary data, which need to be decoded
So first lets recive and then we can ping back to device
its complex script dont bid if u dont understeand what i need,
i know a little to code in php but i cant do it, so if u are junior dont waste your and mine time