Demonic Posted March 9, 2008 Share Posted March 9, 2008 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" ? Link to comment https://forums.phpfreaks.com/topic/95163-whats-faster-simplexml_load_string-or-simplexml_load_file/ Share on other sites More sharing options...
westminster86 Posted March 9, 2008 Share Posted March 9, 2008 simplexml_load_string does exactly what it says, its loads a specified string into an object. So if your wanting to load an xml file this isnt going to be of much help. Are u using the whole xml file, or wanting specific elements from the file? Link to comment https://forums.phpfreaks.com/topic/95163-whats-faster-simplexml_load_string-or-simplexml_load_file/#findComment-487634 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.