View Single Post
Old 12-10-2004, 02:45 AM   #1
Jad
Green Mole
 
Join Date: Sep 2004
Location: Amman
Posts: 4
Warning: ereg_replace(): REG_EBRACK in .....

Greetings
I'm getting this error while spidering
Warning: ereg_replace(): REG_EBRACK in /full/path/to/libs/phpdig_functions.php on line 231

$text = ereg_replace('(['.$phpdig_words_chars[$encoding].'])[\'._~@#$:&%/;,=-]+
($|[[:space:]]$|[[:space:]]['.$phpdig_words_chars[$encoding].'])','\1\2',$text);

I have replaced ereg_replace with str_replace and it works fine
now phpDig works fine, but why it was giving errors with ereg_replace?
Jad is offline   Reply With Quote