Fast and dirty:
function readnlines($filename, $count)
return array_slice(file($filename), 0, $count);
"Tauntz" <[EMAIL PROTECTED]> wrote in message
I have a simmple question :)..
Lets say that I have a file called:
and I want to take the first 10 lines from it & echo it to the browser ?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]