Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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);
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #file #data #php
ADD COMMENT
Topic
Name
5+4 =