How about this one? I just did this one, with the latest site info, but it still doesn't work, not even printing an error message.
<?
$url_to_grab_from="http://uk.sports.yahoo.com/foot/engl/t/gunn/index.html";
$unique_start="<br clear=all><font face=verdana size=-2><b>Earlier Stories</b><br></font>";
$unique_end="<br><form name=arch form action=http://uk.search.news.yahoo.com/search/news_ukie><input type=hidden name=nice value=\"Arsenal\">";
ini_set('max_execution_time', '0'); //tiempo ilimitado
flush(); //flush
$fd = fread(fopen("$url_to_grab_from", "r"), 100000); //abro la url
if ($fd) {
$start = strpos($fd, "$unique_start");
$finish = strpos($fd, "$unique_end");
$length = $finish-$start;
$code = substr($fd, $start, $length);
//add more lines like the following to do more replacements
//example:
//$code = str_replace("i want to replace this", "for this", $code);
$code = str_replace($unique_start, "", $code);
$code = str_replace("a href=\"", "a href=\"http://uk.sports.yahoo.com", $code);
echo $code;
flush ();
} else {
print "error";
}
?>
Does it work on your server?
Man, this is driving me nuts...