RE: [PHP-WIN] Searvh engine...
| From: | Scott Hurring | Date: | Fri, 17 May 2002 19:32:34 +0000 |
| Subject: | RE: [PHP-WIN] Searvh engine... | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13840@lists.php.net to get a copy of this message | ||
Well, what you ask for is pretty generic,
so here's my 2 line search engine ;-)
// Regex to match
$data = join('', file('htmlfile'));
preg_match("/ ... /", $data, $matches);
---
Scott Hurring
Systems Programmer
EAC Corporation
ScottH@eac.com
Voice: 201-462-2149
Fax: 201-288-1515
> -----Original Message-----
> From: Mircea Goia [mailto:mircea@comtrust.ro]
> Sent: Friday, May 17, 2002 3:27 PM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Searvh engine...
>
>
> Hi,
>
> Is there an example of a search engine made in PHP which can search in
> HTML files (a website made only with HTML)?
> And, if possible, without needing a database (maybe a flat text file
> database)?
>
> If someone has a piece of code, can he send it to me?
>
> Thanks,
> Mircea
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>