I’m trying to collect XML from multiple devices and run them through a PHP server. Could someone walk me through how to create a server, send the data (via curl), accept the data with PHP, then parse it for a database?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Grab a quick VPS server, I would recommend using EC2.
Then, make a LAMP server, this is a really easy guide to follow. http://www.lamphowto.com
You need to make sure you have Apache running, because that is what is answering and serving the http requests, not PHP. PHP is just another language downstream that manipulates the response.
Edit:
For future viewers, the OP and I discussed this further, he was actually wondering how to parse the XML. I referenced this link: http://blog.teamtreehouse.com/how-to-parse-xml-with-php5