RE: [PHP] Profanity Filter
| From: | DanO | Date: | Fri, 19 Jan 2001 19:28:20 +0000 |
| Subject: | RE: [PHP] Profanity Filter | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35695@lists.php.net to get a copy of this message | ||
why use a DB?
just create an array of dirty words then loop your input thru it with a
regex.
DanO
-----Original Message-----
From: Website4S@aol.com [mailto:Website4S@aol.com]
Sent: Friday, January 19, 2001 11:09 AM
To: ignacio@openservices.net
Cc: php-general@lists.php.net
Subject: Re: [PHP] Profanity Filter
In a message dated 19/01/2001 19:03:13 GMT Standard Time,
ignacio@openservices.net writes:
<< Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
LIKE
'%'+word+'%'" and count how many rows are returned. No need to re-invent
the
wheel.
--
Ignacio Vazquez-Abrams >>
Yeah problem is he has no database support from his host
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net