[thelist] File size limit for PHP download script?

Mark Groen evolt at markgroen.com
Fri Apr 21 22:31:28 CDT 2006

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):



More information about the thelist mailing list