Here is the block:
$filename = "/home2/drummerl/public_html/currentpass.txt";
$whattoread = @fopen($filename, "r") or die("Couldn't open file");
$filecontents = fread($whattoread);
$msg = "The current server password is: <b>$filecontents</b>";
fclose($whattoread);
The error is "Warning: Wrong parameter count for fread() in /home2/drummerl/public_html/3.php on line 15"
Line 15 would be $filecontents = fread($whattoread);
Now I'm guessing that the error would be in the variable $whattoread but I have no clue what I am looking for, never came across this error before. Any answers?