How do i do this in php

Hi,I need some help please I have configured my device to point to my IP/domain port,…Is it possible to get the data through IP or domain name that was sent by the device to our webserver ?..what method should i use (POST,GET,REQUEST) ?..,so that i can get the data.

Thank you in advance.

I don’t know what you mean by “the data”. From form inputs or a link?
Maybe you’re looking for HTTP Headers information?

Hi, The data is not came from the user inputs or form but from the device,by the way the data is xml format…the device is configured to send xml data to our web server by using the ip/domain port so that the device will know where the data will be send…

This is the format


$$<packageflag><L>,<IMEI>,<command>,<event code>,<(-)yy.dddddd>,<(-)xxx.dddddd>,<yymmddHHMMSS>,<Z>,<N>,<G>,<Speed>,<Heading>,<HDOP>,<Altitude> ,<Journey>,<Runtime>,<Base ID>,<State>,<AD>,<RFID>/<Picture>/<Fence>/<Temperature Sensor Index No..>,<Customize Data>,<Protocol Version>,<Fuel Percentage>,<Temperature Sensor Index No.1 Value|Temperature SensorIndex No.2 Value|……Temperature Sensor Index No.n Value><*checksum>\\r\


Thank you in advance.

Hmmm, that doesn’t look like XML to me, but more like placeholders in a CSV (comma separated variables) format.

Is this for an API you’re wanting to use?

I don’t if this has an API to retrieve that CSV data format?..I keep searching in google but no luck,…so how would you create script to retrieve that data…example if this is the name of my site…http://www.mysite.com/

Note:the device is configure to send data through IP/Domain name and PORT only…

thank you in advance.

Perhaps you could explain what is exactly you are trying to do because not much of what you’re saying makes any sense. If this is for some type of service provider perhaps ask them about it. Though in my attempt to make meaning out of what you’re saying I think all you need is cURL to pull the data. Once you have it as a string you will than need to do manually processing. Though that is guess because I’m not completely certain what you’re asking.

Hi I am not familiar about to use the CURL,can you provide some example in using CURL?

Thank you in advance.

http://www.php.net/manual/en/function.curl-init.php