G
G
gh0st_d0g2017-05-22 19:03:25
PHP
gh0st_d0g, 2017-05-22 19:03:25

How to implement incremental import from xml?

Good afternoon. How can I implement import from xml to php. There can be about 3000 objects in a file. At 300, the server with max_execution_time 0 settings starts to die. I load simplexml_load_file, then json_encode, and then json_decode. How to split into parts to do until I figure it out.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shirshov Alexander, 2017-05-22
@Keanor

Once I implemented reading xml, with a couple of million records. XmlReader to help you, it's a little more complicated than simplexml :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question