Re: [PHP] Trouble with do..while

2004-12-06 Thread Greg Donald
On Mon, 6 Dec 2004 14:23:51 +0100, Salvatore <[EMAIL PROTECTED]> wrote: > I have that script in php that should print on a page the result of lot of > pages defined in this way: > > This is the address: www.mysite.com/mypage.php?idx=1&lines=50 Sounds to me like you want basic pagination. I'd use

Re: [PHP] Trouble with do..while

2004-12-06 Thread denys
Salvatore a écrit : If I understand correctly, have you tried this instead of the above code : while( !feof($f) ) { $stream = fread($f, 8192); $data .= $stream; } fclose($f); i found it. max_execution_time = 30 is too few for more than 3000 files:) Ooops... Sorry for leaving PHP thr

[PHP] Trouble with do..while

2004-12-06 Thread Salvatore
Hi all, I have that script in php that should print on a page the result of lot of pages defined in this way: This is the address: www.mysite.com/mypage.php?idx=1&lines=50 It work in this way: if idx=1 and lines=50 my page will look like: element1 element2 .. element50 if idx=5 and lines=5 my