Date: 08/30/01
- Next message: Girish P: "[PHP] Vairable is not showing up in the print string"
- Previous message: Tim: "Re: [PHP] Quick TXT document stuff"
- In reply to: Kyle Smith: "[PHP] Quick TXT document stuff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Fast and dirty:
function readnlines($filename, $count)
{
return array_slice(file($filename), 0, $count);
}
readnlines('file.txt', 5);
should work,
"Kyle Smith" <dbzno1fan <email protected>> wrote in message
news:OE52m5UxP9Fekzabtne0000034e <email protected>
Ok im like in a realy hurry here, so can someone please tell me (or show)
how i make a script read the first (top) 1 or 5 lines from a text document?
Thanks!
-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!
ICQ: 115852509
MSN: dbzno1fan <email protected>
AIM: legokiller666
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Girish P: "[PHP] Vairable is not showing up in the print string"
- Previous message: Tim: "Re: [PHP] Quick TXT document stuff"
- In reply to: Kyle Smith: "[PHP] Quick TXT document stuff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

