adult content censoring
| From: | Andy B | Date: | Sun, 25 Apr 2004 14:22:29 +0000 |
| Subject: | adult content censoring | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184560@lists.php.net to get a copy of this message | ||
hi...
i have to make an adult content censoring system so people cant post "bad"
words on any public viewable posts. i know preg_replace and possibaly
preg_match would be a huge help but im wondering how i would put all the bad
words in a file (textfile) 1 word on a line and have it look through the
file for the words? when it finds a match then it will either replace the
word with * but better yet tell the user that content in the post was
rejected because of bad content and take them back to the form with the
stuff they typed in it...
if there is a better way to do this (i hope sounds like a lot of work)....