Re: Read A Text File With Paging

From: Date: Fri, 09 May 2003 12:23:56 +0000
Subject: Re: Read A Text File With Paging
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146998@lists.php.net to get a copy of this message
Jerry, Haven't a clue, but I'm curious as to why you'd want to attempt this. Given that users can set their browsers to various heights/widths/fonts -- why do you want to / think you can define a page? Anyway, what's the structure of the file? Is there a formfeed at the end of each page? If so why not just fread() line by line and spew them out until you hit a FF ( ^L or x0C or dec12), then read one more. If there's something there, set "Next". For previous, you'll have to keep track of the pointer - use the predefined variables found under fseek(). I would be doable, but you don't have any control over the output device, namely the brwser. Cheers - Miles At 04:29 PM 5/8/2003 -0400, Jerry Alan Braga wrote:
I am trying to read text files using a Previous Next style. Does anyone have a sample of doing this ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#146998) next »