How to receive arbitrary HTTP posted XML data in a php script
I am trying to write a php script file that will be started as the result of a completely different application sending a TCP/IP message containing an HTTP POST request made up of XML formatted data to port 80 of a server. The post will specify the name of the php script file that should be executed to receive and process the XML data being sent, along with the actual XML data of course.
My problem is fairly simple. I am really not sure where to begin. The script really isn't a form with fixed action items, and the contents of the data can be dynamic.
I have tried googleing for anything having to do with posting XML data to php, and have encountered numerous articles saying how to use php to parse an XML file (close - but the data is coming in via the POST and not a local file), and how to use php to output XML formatted data (no brainer there). However I haven't been able to find any information saying what is involved in writing a php script to be the receiver of externally posted XML data.
Does anyone know of any tutorials or sample code that could assist me in solving my problem?