This is my code:
The problem is, no matter what I put in, it always prints the error message. What am I doing wrong?PHP Code:<?
if (!isset($file))
{
$contents = "You did not specify a file";
}
else
{
$pFile = fopen($file, "r");
$contents = fread($pFile, filesize($file));
fclose($pFile);
}
echo $contents;
?>




Reply With Quote