RE: [PHP] How do I read the first n lines from a file?
| From: | Jon Farmer | Date: | Tue, 28 Aug 2001 13:40:30 +0000 |
| Subject: | RE: [PHP] How do I read the first n lines from a file? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64792@lists.php.net to get a copy of this message | ||
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 pgpkey@bctech.co.uk
-----Original Message-----
From: Tauntz [mailto:tauntz@hot.ee]
Sent: 28 August 2001 12:13
To: php-general@lists.php.net
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
Tauntz@hot.ee