Re: [nyphp-talk] Does PHP have file size download limits? Bestpractice?

2011-05-16 Thread Michele Waldman
I'm still alive. -- From: "Dan Cech" Sent: Monday, May 16, 2011 2:22 PM To: Subject: Re: [nyphp-talk] Does PHP have file size download limits? Bestpractice? On 5/16/2011 2:16 PM, David Roth wrote: I want to offer users to be able to download

Re: [nyphp-talk] Does PHP have file size download limits? Best practice?

2011-05-16 Thread John Campbell
There are no filesize limits, but you can run in to memory limits if you load the file into memory. To avoid this, use `fpassthru`. In terms of best practices, don't pass a user generated filename into fopen. It is a security mess. If you really need to allow arbitrary filenames, you should scr

Re: [nyphp-talk] Does PHP have file size download limits? Best practice?

2011-05-16 Thread Dan Cech
On 5/16/2011 2:16 PM, David Roth wrote: I want to offer users to be able to download a file from a PHP script. I seem to remember there were/are file size download limits with PHP? You're probably thinking of the php ini settings that affect file uploads. The issues you're likely to run into

[nyphp-talk] Does PHP have file size download limits? Best practice?

2011-05-16 Thread David Roth
I want to offer users to be able to download a file from a PHP script. I seem to remember there were/are file size download limits with PHP? Also what is the best practice for doing this with a PHP script? Thanks! David Roth ___ New York PHP Users