Re: php: file upload program limitation..

From: Date: Thu, 30 Oct 2003 02:56:39 +0000
Subject: Re: php: file upload program limitation..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168109@lists.php.net to get a copy of this message
On Thursday, October 30, 2003, at 01:40 PM, Louie Miranda wrote:
Im made a file upload program. I limit my php.ini to accept only 5mb but i told on my website that it is 2mb only. Now here's my problem. I only upload a 1.5mb and a 1.7mb file when ever i submit it the browser displays "the page cannot be displayed" but when ever i upload a file lower than 1mb it uploads it. Where the problem anyway?
there are a few factors... more than likely it's the maximum execution time of either PHP (set in php.ini) or perhaps apache. See these three directives in php.ini: max_execution_time = 30 max_input_time = 60 memory_limit = 8M and this one you've already played with: post_max_size = 8M Obviously, for you to upload a 5 meg file over to a server is going to take more than 30 seconds, and may *possibly* consume more than 8M of memory (not sure there), so these settings need to be carefully modified to suit your needs. Justin French

« previous php.general (#168109) next »