DexterR Posted September 22, 2009 Share Posted September 22, 2009 I have a flash app that sends an XML file to my php script. How would I then load that script in php? I'd like to you simpleXML if possible, it seems the easiest and the XML file isn't large. Also, do I need the name of the XML file? It seems to generate a random name each time. Any help would be much appreciated! Link to comment https://forums.phpfreaks.com/topic/175152-solved-reading-xml-sent-to-the-my-script/ Share on other sites More sharing options...
jjacquay712 Posted September 22, 2009 Share Posted September 22, 2009 I would use the DOM object in PHP to parse the XML. Something like this: <?php $doc = new DOMDocument(); $xml = file_get_contents("http://url-of-your-xml"); $doc->loadXML($xml); ?> Here is more info on DOM: http://us2.php.net/book.dom Link to comment https://forums.phpfreaks.com/topic/175152-solved-reading-xml-sent-to-the-my-script/#findComment-923173 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.