webdev.ramyash@gmail.com

Web Development: Open file in php and read the file.


Open file in php and read the file

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