lilanw Posted June 22, 2010 Share Posted June 22, 2010 Hi, I'm trying to read a XML with SimpleXMLElement. The Code works perfectly on the test server. But when I run it in the live server, the page hangs at "$Flights = new SimpleXMLElement('arr.xml', null, true);" line. <?php $Flights = new SimpleXMLElement('arr.xml', null, true); foreach ($Flights AS $flight) { echo"<tr bgcolor='#000000'> ...... html code </tr>"; } ?> Any idea on this? Quote Link to comment Share on other sites More sharing options...
khr2003 Posted June 22, 2010 Share Posted June 22, 2010 Do you gen any kind of errors? You can use this function simplexml_load_file as a good and simple way of loading xml file. The function is part of the simplexml library but you would need to create an object to use it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.