Jump to content

PHP page hangs after SimpleXMLElement


lilanw

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.