How can I split a big XML file into smallers with PHP? -


i have xml file on 300 000 entries script has parse each day..

the xml structure :

<root> <item> <proper1></proper1> <proper2></proper2> </item> </root> 

i need split big xml file smaller files php can run them, cant proccess because uses memory. can 1 me ?

please take @ article php xml parsing

  1. sax parsing
  2. xml reader xmlreader pull parser

will best suited job

read above article try code answer


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -