Re: Re: New search related question

From: Date: Mon, 04 Feb 2008 20:40:21 +0000
Subject: Re: Re: New search related question
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-268670@lists.php.net to get a copy of this message
strip_tags() perhaps? Andrew Ballard wrote: > On Feb 4, 2008 3:13 PM, Shawn McKenzie <nospam@mckenzies.net> wrote: >> If there aren't many files and you don't intend to grow this site much >> larger and intend to always have static HTML, any easy implementation >> would be to read each file and search for the terms either in the >> keywords tag or in the entire file. >> >> Optionally, if you're on a *nix host you could exec() a grep for the >> terms which returns the matching lines in an array and display as needed. >> >> -Shawn >> > > I'm dreading any searches that contain terms like "table", "body", > "style", "background", etc. These could be perfectly legitimate search > terms, but without the right filter they would match every document in > the site rather than just those that contain these terms in the actual > content rather than the markup. > > Andrew

« previous php.general (#268670) next »