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? Link to comment https://forums.phpfreaks.com/topic/205524-php-page-hangs-after-simplexmlelement/ 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. Link to comment https://forums.phpfreaks.com/topic/205524-php-page-hangs-after-simplexmlelement/#findComment-1075479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.