Re: xmldoc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brad Bonkoski wrote:


weetat wrote:

Hi all,

  I have simple code below :
  It run ok in one of my test server (Red Hat Enterprise) , PHP 4.3.2.

However in the one of production server which have same OS and PHP version , the code did not display "done parsing xml" in log file. It just display "starting parsing xml" only. I have check all setting in php.ini , however cannot found any different between 2 server.

 Anybody have any ideas what happening here ? Thanks

  <?php

     $xmlfile = '/test/test.xml';
     $_logger->logdebug("starting parsing xml");
     $doc = xmldoc($xmlfile);

     $_logger->logdebug("done parsing xml");


  ?>

What does xmldoc() do? Perhaps it reaches some critical error within that segment and causes the script to never complete?

Maybe when parsing the xml, the function throws an exception. That happened to me with PHP 5 xml builtin support, which uses libxml to process xml's, it can be that your document is malformed, you could try with a php debugger (like zend debugger).


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 22/06/2006

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux