[nycphp-talk] large file download
Jonathan
hendler at simmons.edu
Thu Sep 1 16:49:36 EDT 2005
If I remember you were trying to do some operation using zip files and
fread.
Is apache downloading the files directly, or do you pass the files
through php and push out the http headers from there?
If you are passing the binary data through php you might want to read in
chunks then flush the data to the browser (base 64 encode also) rather
than one long stream.
csnyder wrote:
>On 9/1/05, Steve Rieger <steve.rieger at tbwachiat.com> wrote:
>
>
>>hi all
>>have an interesting question
>>i have large files that i am trying to download, anything up to 230 MB works
>>but from 250 and up i can not download. i get no errors in the error logs,
>>and when i hit the download button apache seems to request the file but does
>>not.
>>here are my php info variables for this dir, as defined in .htaccess
>>
>>max_input_time 60
>>memory_limit 947M
>>output_buffering 4096
>>
>>
>>this is a page written in php, the files are there, and i can d/l the ones
>>smaller than 250 MB. any pointers. all the files are on local disks.
>>
>>
>
>No real ideas, but a hunch... check your server system log (
>/var/log/messages on Linux ) for signs that httpd has crashed. Not
>sure what you would do about it, but if you don't see any indication
>that Apache is barfing, you can cross that possibly off the list and
>look for other factors.
>
>What *does* happen? Zero-length file?
>Is there an entry in the httpd access_log?
>
>Hmmm.
>
>
>
More information about the talk
mailing list