Quote:
Originally Posted by piet
$wp=fopen("http://www.eckhart.da.ru/razz/news.php?headlines=1","r");
// here you receive content of page
while(!feof($wp)) {
$content .= fread($wp,4096);
$content = str_replace ("", "", "$content");
}
fclose($wp);
|
$handle = fopen("http://www.eckhart.da.ru/razz/news.php?headlines=1","r");
$content = fread($handle, filesize("http://www.eckhart.da.ru/razz/news.php?headlines=1");
$content = str_replace ("<!-- News Powered by CuteNews: [url ]http://cutephp.com/[/url] -->", "", "$content");
fclose($handle);
is faster and smaller :P
You seem to have register_globals set to ON (page.php?x=y will set $x to y, not $_GET['x']). THis is a really big security threat, I suggest putting it off.
|