×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: sam russo
Added: Oct 31, 2015 10:20 AM
Views: 4
Tags: line
file read in line by line
  1. $file_parth ="data.txt";
  2. $fd = fopen ($file_parth,"r");
  3. while (!feof($fd)) {
  4.     $wl =chop(fgets($fd,1024));
  5.     print "$wl<br>";
  6. }
  7. fclose($fd);