[thelist] File size limit for PHP download script?

Tony Grimes thelist at tonygrimes.com
Mon Apr 24 02:25:39 CDT 2006


Perfect. Thanks Mark. I know it had to be something like that.

Tony


On 4/21/06 9:31 PM, "Mark Groen" <evolt at markgroen.com> wrote:

> On Fri, 2006-04-21 at 20:51 -0600, Tony Grimes wrote:
>> I have a PHP download script that breaks for a certain PDF file:
>> http://www.ppdm.org/download.php?id=765
>> It works for other PDFs, but this one is over 12 MB. Is there a file size
>> limit for either PHP or Apache that will prevent my script from sending this
>> file to a browser? Can anyone see any other reason why this wouldn't work?
> 
> Yep, it's set in the .ini file for php, default is 8MB. If you have
> access to the server you can change this otherwise you can read the file
> size first then chunkify it, about 2/3 down (chrisputnum):
> http://ca.php.net/readfile




More information about the thelist mailing list