Parsing a large file
| From: | Wolf | Date: | Fri, 13 Jan 2006 14:24:39 +0000 |
| Subject: | Parsing a large file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-228559@lists.php.net to get a copy of this message | ||
I have large log files from a web server (about a gig in size) and need
to parse each line looking for a string, and when encountered push that
line to a new file. I was thinking I could have PHP read in the whole
file, but thinking it could be a major pain since I have about 20 log
files to read through.
Anyone have some suggestions?
Thanks,
Robert