You are here: Re: Reading 600Mb XML file « PHP Programming Language « IT news, forums, messages
Re: Reading 600Mb XML file

Posted by Daniel Tryba on 07/01/05 15:45

In comp.lang.php Tomislav Bilic <tomislav_removethis@escapestudio.net> wrote:
> while (!feof($handle)) {
> $buffer.=fread($handle, $chunksize);
> }
> fclose($handle);
> $this->rdf_content=$buffer;

Couldn't you use a SAX parser to avoid reading the whole file into
memory?

> After cca. 5-10 minutes of execution, error occures:
>
> CGI Timeout
> The specified CGI application exceeded the allowed time for processing.
> The server has deleted the process.
>
> I changed max_execution_time from php.ini from 300 to 30000, but that
> didn't help.
>
> Does anybody have experience with it?

There are many timeouts that can happen, this one is propably not from
PHP since you changed the max_execution_time timeout, so maybe it is the
webserver that decides the script took to long, maybe it's a limit in
the OS you are using. It may even be the client.

FUP to c.l.p

 

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

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