Confused about error
by "Mike Lessar" <rfd246(at)bigfoot.com>
|
Date: |
Fri, 8 Jun 2001 15:59:40 -0400 |
To: |
<PHPLearners(at)yahoogroups.com> |
|
todo: View
Thread,
Original
|
|
I have this inside my document
$file = fopen("./news.txt","r");
$newsfile = fread("$file","100000");
fclose($file);
however it worked on my server, yet when I uploaded it to the clients server
I get this error:
Warning: Supplied argument is not a valid File-Handle resource in
/home/www/sites/devel.bluetruck.net/html/index.php on line 176
Line 176 being - $newsfile = fread("$file","100000");
Why is it producing this error?
Thanks
Mike
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA