EzPortal - Portal Software for Forums
EzPortal Forums => Support => Topic started by: jcsnider on December 06, 2009, 04:36:04 pm
-
Every time I try to use the PHP Ezblock, it always says I have the wrong syntax...
here is the code I am trying to use...
<? $myFile = "users.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
echo $theData; ?>
Any Ideas?
-
Looks fine. I would try using the following and putting the full path to the file just in case
<?php
$myFile = "users.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
echo $theData;
?>