Read text file in PHP

By Super Man

here i will show how you can read text file in PHP

<?php
$myFile = "mytext.txt";
$f = fopen($myFile, 'r');
$theData = fread($f, 5);
fclose($fh);
echo $theData;
?>

Read text file in PHP  (663 Views)