Re: Whats faster? simplexml_load_string or simplexml_load_file?
It could be slow if the XML file is very large or if it's accessed
remotely instead of locally, or if the server has many users...
Eliminating a local file read is not likely to give you any noticeable
speedup...
On Mar 8, 10:18 pm, php4f...@gmail.com (Lamonte) 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" ?
|