PHP FILE READ

, by Prashant Gunjal


Simply open file using fopen function and read data of hole file..

Program :


<html>
<head><title>File Read</title></head>
<body>
<?php
$myfile="abc.txt";
$fh=fopen($myfile,'r');
$data=fread($fh,filesize($myfile));

echo $data;
?>
</body>
</html>



0 comments: