php grep
- From: "foodigi" <derekpratt@xxxxxxxxx>
- Date: 19 Apr 2005 15:31:48 -0700
i am looking for a way to grep through a LARGE text file quickly and
efficiently. i need to pull out just one line of the file. i have found
the most efficient method so far to be:
$handle = popen('grep regex /path/to/file.txt', 'r');
$output = fread($handle, 2096);
pclose($handle);
i have used most other methods of reading text in php, but they have
proved to be very inefficient, and security is a major issue. any help
with this subject will be much appreciated.
.
- Follow-Ups:
- Re: php grep
- From: Bent Stigsen
- Re: php grep
- Prev by Date: Re: smtp auth login
- Next by Date: Re: php grep
- Previous by thread: forum problem...
- Next by thread: Re: php grep
- Index(es):
Relevant Pages
|