I know someone who had her site rejected for registration with a major
search engine because it included info about Tae Kwon Do in Scunthorpe ...
you can only go so far with word checking

        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -----Original Message-----
> From: Nik Gare [mailto:[EMAIL PROTECTED]]
> Sent: 20 January 2001 13:07
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Profanity Filter
> 
> 
> In article <94adfp$5le$[EMAIL PROTECTED]>,
>    Stephan Ahonen <[EMAIL PROTECTED]> wrote:
> > I'd make it an array:
> 
> > $filter = array(moron, idiot, pratt);
> 
> > foreach($filter as $badword) {
> >  if (strstr($name, $badword)) {
> >   do this if it contains one of the bad words
> >  }
> >  else {
> >   do this if it doesn't
> >  }
> > }
> 
> But wouldn't this approach have its drawbacks, too?
> For example, I live in Kiel, Germany, about 20km from a town called
> Wankendorf.  Presumably I wouldnÄt be able to say this.
> 
> Nik
> 
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to