Jen,

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
http://www.mail.lycos.com/brandPage.shtml?pageId=plus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to