Re: [PHP] dirty words

2004-10-18 Thread Mag
Hi, > > I am useing file_get_contents on a remote page > then > > using stristr() to make sure there are no "bad > words" > > and its a family site. > > May I point out this is a lost battle from the > start? If someone really > wants to enter "bad words" they will, by masking > them in various w

Re: RE: [PHP] dirty words

2004-10-18 Thread hitek
What I find interesting is that you managed to use 4 variations on the word viagra, and your email still made it past my ISP's spam filters :) Keith > > From: "Graham Cossey" <[EMAIL PROTECTED]> > Date: 2004/10/18 Mon PM 06:27:02 EDT > To: <[EMAIL PROTECTE

RE: [PHP] dirty words

2004-10-18 Thread Graham Cossey
ctober 2004 18:13 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] dirty words > > > On Sat, 16 Oct 2004 07:41:11 -0700 (PDT) Mag <[EMAIL PROTECTED]> wrote: > > I am useing file_get_contents on a remote page then > > using stristr() to make sure there are no "bad w

Re: [PHP] dirty words

2004-10-18 Thread Skippy
On Sat, 16 Oct 2004 07:41:11 -0700 (PDT) Mag <[EMAIL PROTECTED]> wrote: > I am useing file_get_contents on a remote page then > using stristr() to make sure there are no "bad words" > and its a family site. May I point out this is a lost battle from the start? If someone really wants to enter "bad

Re: [PHP] dirty words

2004-10-18 Thread Philip Thompson
$badwords = array('poo', 'bum', 'perl'); Perl. Laf! ~P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dirty words

2004-10-16 Thread Kevin Waterson
This one time, at band camp, Mag <[EMAIL PROTECTED]> wrote: > Hi, > I am useing file_get_contents on a remote page then > using stristr() to make sure there are no "bad words" > and its a family site. > Right now I am checking for just 3 bad words which > means 3 stristr() function calls, but if t

RE: [PHP] dirty words

2004-10-16 Thread Mag
Hey! Thanks, I think in_array() is what I was looking for, but by a quick glance I think its case sensitive (?), I didnt want to use a class for this coz it kind of seemed like using a gun instead of a flyswatter :-) Also, any way to check if a remote file exists? I am presently using this: $u

RE: [PHP] dirty words

2004-10-16 Thread Chris Kay
in_array() can check your $string against a array and return if a bad word is in string Is this what you are after? Chris Kay (CK) [EMAIL PROTECTED] -Original Message- From: Mag [mailto:[EMAIL PROTECTED] Sent: Sunday, 17 October 2004 12:41 AM To: php php Subject: [PHP] dirty words H