Don't use eregi_replace when str_replace will do.

$contents = str_replace($matches[0][$i], $blah, $contents);

Also the dots should be escaped or gif and jpg without 
dots before them will be matched.

preg_match_all('{\/*[A-z0-9_/-]+(\.gif|\.jpg)}', $contents, $matches);

Tired of all the SPAM in your inbox? Switch to LYCOS MAIL PLUS

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to