Search This Blog

Wednesday 21 January 2015

Open file in php and read the file.




<?php

$myFile = "testFile.txt";

$myFile =fopen($myFile, 'r') or die("can't open file");

while(!feof($myFile))

{

echo fgets($myFile). "<br>";

}

?>

No comments:

Post a Comment