Whats faster? simplexml_load_string or simplexml_load_file?
| From: | Lamonte | Date: | Sun, 09 Mar 2008 03:18:36 +0000 |
| Subject: | Whats faster? simplexml_load_string or simplexml_load_file? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-271167@lists.php.net to get a copy of this message | ||
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" ?