Re: [PHP] adult content censoring

2004-04-25 Thread Ryan A
Depends on how badly the person wants to use "adult language"every "bad words filter" can be bypassed unless you are the filter. E.g: you screen the comments before allowing or disallowing it... My $0.2 Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] adult content censoring

2004-04-25 Thread Curt Zirzow
* Thus wrote Richard Davey ([EMAIL PROTECTED]): > Hello Curt, > > Sunday, April 25, 2004, 4:28:37 PM, you wrote: > > CZ> Also instead of str_replace scanning the whole string 5 time to > CZ> replace the 5 items, its only scanned once, replacing up to five > CZ> things. > > My method *did* only

Re[2]: [PHP] adult content censoring

2004-04-25 Thread Richard Davey
Hello Curt, Sunday, April 25, 2004, 4:28:37 PM, you wrote: CZ> Also instead of str_replace scanning the whole string 5 time to CZ> replace the 5 items, its only scanned once, replacing up to five CZ> things. My method *did* only scan the string once and str_replace is definitely faster than pre

Re: [PHP] adult content censoring

2004-04-25 Thread Curt Zirzow
* Thus wrote Richard Davey ([EMAIL PROTECTED]): > Hello Andy, > > Sunday, April 25, 2004, 3:22:29 PM, you wrote: > > AB> i have to make an adult content censoring system so people cant post "bad" > AB> words on any public viewable posts. i know preg_replace and possibaly > AB> preg_match would be

Re: [PHP] adult content censoring

2004-04-25 Thread Richard A. DeVenezia
Richard Davey wrote: > and that's it - I pass any string I need to this whenever someone > posts a message, subject, etc etc and it hasn't failed me yet :) > (unless the bad word isn't in your list of course!) To guard against 'lame' impressions of words to be filtered, you might also check all c

Re: [PHP] adult content censoring

2004-04-25 Thread Richard Davey
Hello Andy, Sunday, April 25, 2004, 3:22:29 PM, you wrote: AB> i have to make an adult content censoring system so people cant post "bad" AB> words on any public viewable posts. i know preg_replace and possibaly AB> preg_match would be a huge help but im wondering how i would put all the bad AB>

[PHP] adult content censoring

2004-04-25 Thread Andy B
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 t