Capture gps data using php
Posted: Tue Mar 01, 2011 11:00 am
Hi ,
I want to capture the data being posted by a GPS device using PHP . The data being posted by the device is not having http headers and consist of a data which is like
>demo,13,19.256645,72.871895,1132.119995,|,19.256643,72.871902,1132.020020,0.157,0,10,0,255,255,255,47.9M,0.43,04B3,7383,0842,45,255,404,92,23,7383,1203,00,00,255<
I tried to capture this data using $_SERVER['REQUEST_METHOD']; but it returns nothing .
please find attached a java application which can be used to simulate the scenario . If i use a java based application i was able to get the device communication well both from the device as well as the attached java program.
I want to know how can i listen to the communication from the device using which method .
Thanks
Aditya
I want to capture the data being posted by a GPS device using PHP . The data being posted by the device is not having http headers and consist of a data which is like
>demo,13,19.256645,72.871895,1132.119995,|,19.256643,72.871902,1132.020020,0.157,0,10,0,255,255,255,47.9M,0.43,04B3,7383,0842,45,255,404,92,23,7383,1203,00,00,255<
I tried to capture this data using $_SERVER['REQUEST_METHOD']; but it returns nothing .
please find attached a java application which can be used to simulate the scenario . If i use a java based application i was able to get the device communication well both from the device as well as the attached java program.
I want to know how can i listen to the communication from the device using which method .
Thanks
Aditya