Posted by steve on 06/08/05 02:35
"Janwillem Borleffs" wrote:
>Richard Quick wrote:
>> Could someone please post a standard forbidden word list please?
>>
>
>A quick google search brought up this one:
>
>http://outsports.com/nfl/2005/0301nflshopnaughtywords.htm
>
>> People occasionally post banned words on my forum and Id like
>to
>> replace them with ***s. Is there a standard script for that
>available
>> in PhP?
>
>Have a look at the following functions:
>
>http://www.php.net/str_replace
>http://www.php.net/stri_replace
>http://www.php.net/preg_replace
>
>Note: For performance, its recommended to perform replacements
>prior to
>database insertion.
>
>
>JW
For maximum flexibility, I strongly recommend you set up your word
list with regex notation. That way, many different versions of a word
can be caught with a single regex.
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/PHP-Forbidden-word-removal-ftopict229633.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=797450
[Back to original message]
|