Re: [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, June 9, 2005 4:12 pm, Catalin Trifu said:
>   Tried it and it works indeed, but it's quite annoying to make such
> tricks
> and is not the best solution either; fopen and fread are "expensive".
>    I can't say if it's a bug in PHP or some config option.

You may want to benchmark the difference between readfile and fopen/fread
for a 1.9M file.

If it ain't much, don't worry about it.

One posible work-around:

`cat filename`;

This MIGHT be cheaper than fopen/fread -- Or not, since it has to build a
shell of some kind, I think.

PS File a bug report, if you haven't already.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux