Re: Re: Opening large file problem - fopen
| From: | Eugene Lee | Date: | Tue, 16 Dec 2003 13:01:00 +0000 |
| Subject: | Re: Re: Opening large file problem - fopen | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172798@lists.php.net to get a copy of this message | ||
On Tue, Dec 16, 2003 at 01:30:14PM +0100, Kim Steinhaug wrote:
:
: I found out that what the script accually does is choke on "\n\n",
: empty lines. I havnt found a way to solve this with the script,
:
: What I do now is use TextPad and just replace all occurencies
: of "\n\n" with "\n-\n" or something and it works all nice. But this
: is a bad way of doing it, since the script still doesnt accually work...
You have two options:
1) massage your data beforehand so that your script works properly
2) buffer your input lines so that you process them only after you have
read a complete "entry", since one entry may span multiple lines in your
error_log.