Re: Whats faster? simplexml_load_string or simplexml_load_file?

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

 



On Sat, Mar 8, 2008 at 11:18 PM, Lamonte <php4food@xxxxxxxxx> wrote:
> I was wondering this because at the moment using simplexml_load_file
>  makes my script go at about 2 seconds per page load, in a loop.  Then I
>  created a cache system so it doesn't keep loading the xml file, but I'm
>  wondering if theres a faster way to load xml QUICKER, is it possible
>  with "file_get_contents" and "simplexml_load_string" ?

    Yes, and you may notice performance enhancements because you're
now going to parse the XML data line-by-line as opposed to parsing the
entire file at once.

-- 
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>

-- 
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