Printing out remove pages
| From: | Leon Mergen | Date: | Sun, 04 Jun 2000 12:48:16 +0000 |
| Subject: | Printing out remove pages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-972@lists.php.net to get a copy of this message | ||
Hello,
I've written a small newsgrabber for one of my sites, which looks like this:
$fd = fopen("http://www.cmptr.com/dump/headline.txt",
"r");
$contents = fread( $fd, filesize( $filename ) );
fclose( $fd );
echo $contents;
But this doesn't work! It just prints out a blank page! Anyone knows what's wrong?
This does work for local files (like /home/httpd/html/test.txt)
Carpe Diem,
- Leon (ICQ # 55677353)
http://www.solatis.com/ <- free webmaster resources!
http://www.coolguest.com/ <- free guestbooks for your
site!
http://www.ffalp.com/ <- create your own free mini-yahoo
----
I haven't lost my mind!
I've got it on tape somewhere...
----