I'm using str_replace in the code above but that is case SENSITIVE. I cant use str_ireplace, b/c my server support PHP5 yet.
I've tried eregi_replace, but doesnt work on my file buffer.
For example, if I do a simple test below, it works fine.
$str = "HELLO WORLD";
$str = eregi_replace('world', '*****', $str);
When I try the same thing on the code in the previous post it doesnt work. Any thoughts as to why?