Re: Re: File Upload - post_max_size and upload_max_filesize in GBs

From: Date: Fri, 08 Jun 2007 22:10:17 +0000
Subject: Re: Re: File Upload - post_max_size and upload_max_filesize in GBs
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-256404@lists.php.net to get a copy of this message
On Fri, June 8, 2007 4:03 pm, Jim Lucas wrote: > afaik, you are using the stock php.ini setting while you are > uploading. This should not be taken to mean that if one changes php.ini, that the change does not affect file upload -- it definitely does matter... Not sure Jim meant that Sukhwinder was using stock php.ini, or everybody, but it's definitely not the case that everybody is, like it or not -- If that were true, upload_max_filesize would be meaningless. You CANNOT change the file upload time out with set_time_limit, however, because the file upload happens BEFORE your PHP script begins execution. The time limits affecting file upload can only be set: a. in http.conf, for various Apache settings, if any (off-topic) b. in php.ini or .htaccess b1. you'll need to crank up max_input_time, I think b2. max_execution_time for sure b3. memory_limit while you are at it, probably You of course have to crank up upload_max_filesise to way beyond what you expect for an uploaded file. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#256404) next »