the fastest way to get xml and use it in php -
until doing @simplexml_load_file
, on returned xml going xpath
the website got big traffic , taking alot of time xml load.
the host told me try get_file_contents
don't know in order read returned content xml object
they said try curl or wget me same first 1 i'm stuck with
what can in order xml, fest possible partners api, , still able read xml?
the fastest xml library in php xmlreader. it's pretty obscure (i think has few php users understand , able use it) blazing fast because:
the xmlreader extension xml pull parser. reader acts cursor going forward on document stream , stopping @ each node on way.
which means xml document not preloaded in memory. part it's parsing loaded in memory.
Comments
Post a Comment