Forum Moderators: coopster
$i = 1;
while($fp &&!feof($fp))
{
$myArray[$i] = trim(fgets($fp));
$i++;
}
after that you can use the array and lookup any line numbers
Note: depending on line length (when size of a line is over a certain amount of kb), there might be issues (more info here -> fgets [php.net])
mavherick
[added]changed start of counter to 1[/added]