this will read a remote file and return the content as an array where each line is one item in the array.
“read file” makes use of the built-in PHP functions file( ) and count( ).
01 <? 02 03 $lines = file('data/file.txt'); 04 $l_count = count($lines); 05 06 for($x = 0; $x< $l_count; $x++) 07 { 08 echo $lines[$x]; 09 } 10 11 ?>