I've been trying everything with no luck. Basic setup: I'm pulling the body contents from a remote URL and I want to find and replace some patterns on the content I've pulled.
I've tried ereg_replace, eregi_replace, and str_replace - they seem to ignore the content and not replace anything. If I try preg_replace, the content disappears. Here's the basic idea of what I'm doing - apparently there is something I'm not understanding about my string from the file_get_contents. $a is my URL, that part works just fine - just not any replacement of any kind.
$content = file_get_contents($a);
$content = eregi_replace("pattern", "replacement", $content);
echo ($content);
Any ideas?