RE: [PHP] Profanity Filter

From: Date: Mon, 22 Jan 2001 09:14:34 +0000
Subject: RE: [PHP] Profanity Filter
Groups: php.general 
Request: Send a blank email to php-general+get-35973@lists.php.net to get a copy of this message
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:nik@cheddarcheese.de] > Sent: 20 January 2001 13:07 > To: php-general@lists.php.net > Subject: Re: [PHP] Profanity Filter > > > In article <94adfp$5le$1@toye.p.sourceforge.net>, > Stephan Ahonen <analogy@wheezebucket.com> 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 > >

« previous php.general (#35973) next »