Re: getting one line from file
| From: | Sylwester Zarębski | Date: | Thu, 31 Aug 2000 13:42:42 +0000 |
| Subject: | Re: getting one line from file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14592@lists.php.net to get a copy of this message | ||
Michael Packer wrote:
>
> The text file i'm search is 9,859,103 bytes (today,
> it will be a bit larger tomorrow) (30,072 lines)
>
> generally the line i'll be looking for is in the
> first 9,000 or so lines... the web server that i'm
> doing this on is dual p3 500 with 512mb
>
> i'm only looking for the one line that contains
> a specific number (and i know for a fact that the
> number will not (ever) be duplicated in another line.
Then why not use already known databases engine like
MySQL or PostgreSQL ??? This will be much faster then
greping file (which could kill server if there is some
processes like this).
You should consider that.
--
pozdrawiam..
## ## | Sylwester Zarębski - ISP Group |
#### ## | e-mail: sylwek@isp.net.pl |
## ## ## | ICQ uin: #45780888 |
## #### ## | Administrator ISP.NET.PL |