php fread and fclose error
public php v1 · immutable<?php //print header $myFile = "home.html"; //echo printfile ( $myfile ); $fh = fopen($myFile, 'r'); $theData = fread($fh, filesize($myFile)); fclose($fh); // echo $theData; function printHtml( $myfile ) { $fh = fopen($myFile, 'r'); $theData = fread($fh, filesize($myFile)); fclose($fh); return $theData; } echo printHtml ( "home.html" ); ?>