Re: Log_Parser bug
| From: | nicos@php.net | Date: | Fri, 27 Jun 2003 17:09:18 +0000 |
| Subject: | Re: Log_Parser bug | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17796@lists.php.net to get a copy of this message | ||
Hello Cox,
You know how big is your file you want to parse. If it's up to 700 Mbs,
thats your problem, you have to correct your php.ini so it can have enough
memory.
I'm -1 for changing anything about reading files.
nicos.
----- Original Message -----
From: "Tomas V.V.Cox" <cox@idecnet.com>
To: <tobias@schlitt.info>
Cc: <nicos@php.net>; <pear-dev@lists.php.net>; <xnoguer@php.net>
Sent: Friday, June 27, 2003 6:31 PM
Subject: Log_Parser bug
>
> From pear/Log_Parser/Parser.php:
>
> function parse($start = null, $end = null)
> {
> $lines = file($this->_filename);
>
> My daily access_log size is arround 700Mbs :-) I would suggest you to
> change the class for not reading so a huge ammount of data to memory.
> In the other side, in a common php installation there is a 8Mb memory
limit, so your
> logs can't be larger than this.
>
> Btw, the xml configuration stuff is pretty nice.
>
> --
> Tomas V.V.Cox mailto:cox@idecnet.com
>
>