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!!!!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to