[PHP] Help w/ regular expressions for banned words

2001-01-20 Thread Team JUMP
$num=count($bannedwords); for($i=0;$i<$num-1;$i++) { $string = eregi_replace("\b$bannedwords[$i]\b","[censored]",$string); } For whatever reason, no word in $bannedwords will match in the string. I've tested it with simple expressions like

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread Team JUMP
ot;\","[censored]",$string) or eregi_replace("\ba\b","[censored]",$string) does not. Most odd. Thanks for your help, though. Anyone else have suggestions? --Neal on 1/20/01 12:20 PM, CC Zona at [EMAIL PROTECTED] wrote: > In article <[EMAIL PROTECTED]>,

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread Team JUMP
ntax is right. Thanks for your help, though. --Neal --- did it work? - Original Message - From: Team JUMP <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 12:35 PM Subject: Re: [PHP] Help w/ regular expressions for banned words T

[PHP] Upgrading to 4.04 question, but won't stick

2001-01-21 Thread Team JUMP Lists
We've had 4.01 running since July so I thought I'd upgrade to 4.04 from the tarball last night. Everything went fine w/ the compile, no errors. Install said all OK, Then i went and HUP'd apache but when I run phpinfo() the old module is still loaded. What am I doing wrong? Where should I look to