Reply to Re: Parsing XML File - PHP out of memory?

Your name:

Reply:


Posted by David Gillen on 01/18/07 14:41

bmichel@gmail.com said:
> Hey,
>
> What I'm doing is the following:
> - Load XML data a file
> - Parsing the XML data
> - Printing some parsed content
>
> The problem is that the script execution is stopping before all the
> content is parsed and printed.
> Maybe the PHP is out of memory after a while. That would make sense
> since the XML file is about 2 MB.
>
> Someone has any ideas how I can solve this problem?
>
Check the max_execution_time in your php.ini
You can override it with set_time_limit(), http://www.php.net/set_time_limit
That'll allow your script to run for longer, test on a smaller file to ensure
your script isn't getting stuck in a loop somewhere and is doing what it
should.

D
--

[Back to original 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

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