Answers for "how to readfile as data image in php"

PHP
3

read file data using php

<?php

$fh = fopen('filename.txt','r');
while ($line = fgets($fh)) {
  // <... Do your work with the line ...>
  // echo($line);
}
fclose($fh);
?>
Posted by: Guest on July-19-2021
0

readfile in php

$a = readfile('myfile.txt');	//you can read whole file in php
echo $a; //it will return character of length also.
Posted by: Guest on October-12-2021

Browse Popular Code Answers by Language