Re: [PHP] php: file upload program limitation..
max_execution_time does not affect file uploads. Php script and thus also the timer starts after the upload is finished. max_input_time might influence it as it is the time allowed for the browser to post the data. Justin French wrote: 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php: file upload program limitation..
Hello, 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? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php: file upload program limitation..
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php