Basically what I want to do is just display lines 10 - 20 for example. Nothing else. Is there a way to do this?
I can get the whole document to display with
[PHP]$filename="text.txt";
//open file
$fp = fopen($filename,'r');
//loop through each line in the file
while($line=fgets($fp)) {
//output current text file line
print $line."<br>";
}
//close file handle
fclose($fp);[/PHP]
Does anyone have any ideas?
Thanks in advance!