If you are on a unix box you might want to use the tail command... if you
use exec() the output will be in an array...
--
Jon Farmer Õ?Õ?
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, send blank email to [EMAIL PROTECTED]
-----Original Message-----
From: Tauntz [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 12:13
To: [EMAIL PROTECTED]
Subject: [PHP] How do I read the first n lines from a file?
hi !
I have a simmple question :)..
Lets say that I have a file called:
list.txt
and I want to take the first 10 lines from it & echo it to the browser ?
thank you
[EMAIL PROTECTED]
--
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]