Re: including() only given amount of lines

From: Date: Sat, 10 May 2003 13:44:19 +0000
Subject: Re: including() only given amount of lines
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147113@lists.php.net to get a copy of this message
On Saturday 10 May 2003 19:53, iliketheworld@gmx.ch wrote: > 1. i would like to include only a given amount (the first 50) lines of a > text file. i think they should be included using fgets() or fread() instead > of include() but i dont know how. > > 2. besides that i need to include the laste 50 lines of a text file -- in > reversed order! The easiest way would be to use file() and the array manipulation functions. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Life is the urge to ecstasy. */

« previous php.general (#147113) next »