Answers for "reading php file"

PHP
0

reading php file

<?php
$myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!");
// Output one line until end-of-file
while(!feof($myfile)) {
  echo fgets($myfile) . "<br>";
}
fclose($myfile);
?>
Posted by: Guest on October-26-2021

Browse Popular Code Answers by Language