View Single Post
Stijn

Administrator

Joined: Mar 2001

Posts: 6,968

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

Jun 21, 2005, 12:18 PM
Stijn is offline
Reply With Quote
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.