Hi All,
I am quite new to PHP. I have a problem.
I want to read line by line from a file. I am not able to find and function in the manual.
Your help is appriciated.
Thanks,
Britto
You can read the entire contetns of the fiel into an array using file() each line is an element of the array. for instance this would print lines 10 through 50 of www.yahoo.com
<?php $file = file("http://www.yahoo.com"); for ($i=10;$i<50;$i++) { print $file[$i]; } ?>
See the manual page on fgets().
Thank you very much.