You are here: Re: Re: Forbidden word removal « All PHP « IT news, forums, messages
Re: Re: Forbidden word removal

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 I’d 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, it’s 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

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация