Re: output of fread() is blank - FIXED
| From: | Guru Geek | Date: | Tue, 28 Jan 2003 00:10:12 +0000 |
| Subject: | Re: output of fread() is blank - FIXED | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133321@lists.php.net to get a copy of this message | ||
Here's my code now:
$filename =
"/usr/local/plesk/apache/vhosts/myserver.com/httpdocs/include/text.txt";
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
echo readfile($filename);
exit;
now it displays the contents of the text.txt file. I originally had just
/include/text.txt but it told me no such file existed. But once I added the
root directory stuff in front of that, it works.
I'm having a similar problem getting smarty to run, it keeps telling me that
it can't find index.tpl and now I think I know what the problem is...
Thanks to everyone!!!!