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
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
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
8 matches
Mail list logo