anyone know why this isn't working for me? i've tried many variations and still feel a dull humming in my head. on one page, it won't even grab the http: reffer. either way, it's not replacing script tags with comment start and ends.
thanks!
$grab = eregi("<HEAD>(.)</HEAD>", $fread, $head);
$grab = eregi("<!-- begins_here -->(.)<!-- ends_here -->", $fread, $printing);
$printing = str_replace("<SCRIPT[>]*>", "\n<!-- /trim\n\n ", $printing[1]);
$printing = str_replace("s/<\/SCRIPT>//gi ", "\n\n trim/ -->\n", $printing[1]);
echo $printing[1];