Re: searching in HTML or TEXT files
| From: | Nick | Date: | Mon, 02 Oct 2000 16:31:20 +0000 |
| Subject: | Re: searching in HTML or TEXT files | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18282@lists.php.net to get a copy of this message | ||
mmmm, i guess so....
as a result i'm now writing a script to convert al of my HTML files into
entries in a mysql database....:p
thx anyways,
nick
----- Original Message -----
From: Liam Gibbs <lgibbs@microlegend.com>
To: Nick <nick@carrierworld.com>
Sent: Monday, October 02, 2000 5:37 PM
Subject: Re: [PHP] searching in HTML or TEXT files
> i've looked for info on this in many places, but have never found any
> conclusive results. Does anyone know: is it possible to search for a
string
> in a series of HTML documents ? For instance, if i wanted to search for
> "William Shakespeare" in a directory full of either HTML or TEXT files on
my
> site, how would I do this ?
>
> The only way I can think of is the ol' hack-and-slash method: search
through
> each line of each file and see if the text "William Shakespeare" is there.
> If so, add it to an array along with the filename and line. That method,
> however, is very slow.
>
> Liam Gibbs
>
>