You are here: parse huge XML file « PHP Programming Language « IT news, forums, messages
parse huge XML file

Posted by Bob Bedford on 11/17/06 10:06

Hi all,

I need help for parsing a huge XML file with some ISP limits (I can't change
ISP, so this isn't a solution).

The ISP limits the scripts to 16MB and 10 seconds. Those params can't be
changed (no set function available either no config available).
So my file contains an export from different customers. Those export can be
quite large (20MB) and contains the full article description and the
attached pictures.

For now I parse the XML files, record the values in my DB and save pictures
on a server.
Obviously, due to the size of the actual XML and to the limits of the ISP, I
often run on Time Exceed error.

I've many articles in the XML export, each having 0 to 10 pictures. My idea
is to "refresh" the page after each article has been created in the DB.
My question are:
- how can I manage the refresh after each article ?
- how can I read from the file a block big enough to avoid to have only part
of the article description ?
I'm not so confortable with XML parsing. It's there any PHP code that will
put everything in an array in order to manage this using structures or
whatever ?

Thanks for help.

Bob

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация