Re: how to include() N lines?

From: Date: Thu, 04 Sep 2003 10:19:05 +0000
Subject: Re: how to include() N lines?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161636@lists.php.net to get a copy of this message
In article <BB7AE064.A2E%457945@gmx.ch>, 457945@gmx.ch says... > hello! > > i need to include() only a given amount of lines (the first 10 for example) > instead of a whole file. > > does someone know how this has to be done? > > > thanks a lot for your effort, > best regards include and friends only load a complete file. You might try fopen/fread and count the number of lines loaded. Cheers -- Quod subigo farinam A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?

« previous php.general (#161636) next »