[PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-18 Thread sas
ID: 10701 Updated by: sas Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Filesystem function related Operating system: PHP Version: 4.0.5 Assigned To: Comments: It is almost impossible to tell from the output of system commands like top why certain processes have such

[PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-18 Thread sniper
ID: 10701 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Closed Status: Open Bug Type: Filesystem function related Operating system: PHP Version: 4.0.5 Assigned To: Comments: Reopened. This is not fixed. --Jani Previous Comments:

Re: [PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-18 Thread Wez Furlong
On 2001-05-18 05:28:19, [EMAIL PROTECTED] wrote: > ID: 10701 > Status: Closed > But a hint. Don't use readfile(), fopen() the file and read it a bit at a time instead of sticking the entire thing in memory. Does readfile() really read the whole thing into memory first?? Perhaps we should change

RE: [PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-17 Thread Rasmus Lerdorf
> Well, the reason I stayed away from trying to use fgets for a single block > at a time were because of some of the comments from > http://php.net/manual/en/function.fgets.php > > Anyways, an offtopic question if I may, I've tried making .htaccess > parseable by PHP using AddType and also attempt

RE: [PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-17 Thread Stephen VanDyke
ee it. -Stephen -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 12:56 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Bug #10701 Updated: readfile usage on large files Well, you'd want to do it one block at a time. But y

Re: [PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-17 Thread Rasmus Lerdorf
Well, you'd want to do it one block at a time. But yes, if you are going to be reading the files with PHP that's what you'll end up doing at some level anyway. Otherwise look at Apache's mod_header and perhaps dynamically generate the header information and write the appropriate .htaccess files

[PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-17 Thread stephen
ID: 10701 User Update by: [EMAIL PROTECTED] Status: Closed Bug Type: Filesystem function related Operating system: Linux 2.4.x PHP Version: 4.0.5 Description: readfile usage on large files You are kidding right? Nice way to take down a server. load average: 66.52, 33.25, 15.76 $fp = fopen("

[PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-17 Thread rasmus
ID: 10701 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Filesystem function related Operating system: PHP Version: 4.0.5 Assigned To: Comments: What's to claim. This is a support question that belongs on one of the mailing lists and not in the bug

[PHP-DEV] Bug #10701 Updated: readfile usage on large files

2001-05-17 Thread stephen
ID: 10701 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Filesystem function related Operating system: Linux 2.4.x PHP Version: 4.0.5 Description: readfile usage on large files Anyone plan on claiming this? Previous Comments: