Search found 1 match

by dikase
Tue Sep 11, 2012 12:11 am
Forum: Useful Scripts.
Topic: reading from a file
Replies: 7
Views: 12331

Re: reading from a file

you can try this....
$myFile = "testFile.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
echo $theData;