Load big XML files to mySQL database (PHP)

Posted by Kees on Stack Overflow See other posts from Stack Overflow or by Kees
Published on 2009-10-31T13:00:23Z Indexed on 2010/03/14 20:25 UTC
Read the original article Hit count: 129

Filed under:
|
|
|

Hello There,

For a new project I need to load big XML files (200MB+) to a mySQL database. There are +- 20 feeds i need to match with that (not all fields are the same).

Now when i want to catch the XML I get this error:

Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 171296569 bytes) in E:\UsbWebserver\Root\****\application\libraries\MY_xml.php on line 21

Is there an easy solution for this? It's not possible to get te feed in parts of a few MB's each.

Thank you very much!

P.s. has somebody an idea to match xml-feeds easy?

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml