Re: [PHP] php: file upload program limitation..
From: Justin French (justin_at_indent.com.au)
Date: 10/30/03
- Next message: Manuel VáZquez Acosta: "Trying to craft a regexp"
- Previous message: Steve Turner: "Object Undefinded index"
- In reply to: Louie Miranda: "php: file upload program limitation.."
- Next in thread: Marek Kilimajer: "Re: [PHP] php: file upload program limitation.."
- Reply: Marek Kilimajer: "Re: [PHP] php: file upload program limitation.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 13:56:39 +1100 To: "Louie Miranda" <louie@axishift.ath.cx>
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
- Next message: Manuel VáZquez Acosta: "Trying to craft a regexp"
- Previous message: Steve Turner: "Object Undefinded index"
- In reply to: Louie Miranda: "php: file upload program limitation.."
- Next in thread: Marek Kilimajer: "Re: [PHP] php: file upload program limitation.."
- Reply: Marek Kilimajer: "Re: [PHP] php: file upload program limitation.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|