|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-06 10:57 UTC] tony2001@php.net
[2006-06-14 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 05:00:02 2025 UTC |
Description: ------------ Huh..this is a strange one.... If I want to load an XML file using define('PATH', 'http://www.somedomain.com/'); $xml = simplexml_load_file(PATH . 'settings.xml'); print_r($xml); it will take ages for the xml file to load...it took me 3 hours to trace the bug in my application to simple xml... but if I use define('PATH', '/usr/home/path_to_domain_folder/'); $xml = simplexml_load_file(PATH . 'settings.xml'); print_r($xml); then it will be ok.... so I'm guessing simplexml_load_file has some issues with PATH's to file.... Reproduce code: --------------- define('PATH', 'http://www.somedomain.com/'); $xml = simplexml_load_file(PATH . 'settings.xml'); print_r($xml); Expected result: ---------------- quick display of results... Actual result: -------------- it takes about 20-30 seconds to display the xml structure...