I'm trying to read a small html file but when I echo the results I don't see anything. The read/display code is:
$headerName = "header.html";
$header = fread($header_fp,filesize($headerName));
$header_filesize = filesize($headerName);
echo "<pre>";
echo ("<br />header: file size = $header_filesize data = $header");
echo "</pre>";
The $header_filesize prints as 110, which is correct.
The header.html file I'm reading is:
<!doctype html>
<!-- HTML5 -->
<html>
<head>
<meta charset="utf-8">
<title>Webplaces</title>
</head>
<body>
The above is what I was expecting to see with the echoes.
Does anyone see why the echoes don't show the file contents?
Thanks