Re: I'm not sure how to do some simple code...

From: Date: Sat, 26 Jan 2002 04:43:10 +0000
Subject: Re: I'm not sure how to do some simple code...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-82201@lists.php.net to get a copy of this message
Whoops, that should be: $mystring = "This is a string with the word script in it"; if(eregi("script",$mystring)){ //do something here } ----- Original Message ----- From: "Mike Maltese" <mike@php.d2g.com> To: <php-general@lists.php.net> Sent: Friday, January 25, 2002 8:41 PM Subject: Re: [PHP] I'm not sure how to do some simple code... > > } > > > ----- Original Message ----- > From: "Leif K-Brooks" <eurleif@buyer-brokerage.com> > To: <php-general@lists.php.net> > Sent: Friday, January 25, 2002 8:12 PM > Subject: [PHP] I'm not sure how to do some simple code... > > > > I know this is probably a stupid question, but how do I make it so that if > a > > string contains the word "script" (I'm banning javascript) it does > > something? > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#82201) next »