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
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
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
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
$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
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
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
>
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
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 the bad words
increase then that would mean more calls
I have seen so
9 matches
Mail list logo