Re: [PHP] php: file upload program limitation..

From: Justin French (justin_at_indent.com.au)
Date: 10/30/03


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



Relevant Pages

  • Re: (Youtube) Will NBC Buy Website It Locked Horns With?
    ... had been uploaded to the website. ... The latest skit, featuring a rapping ... wrestling uploads, so I assume Vince and Co. have been perusing the ... Beat on the brat, ...
    (rec.sport.pro-wrestling)
  • WeatherlinkIP uploads to Weather Underground
    ... For anyone who might be interested in using automatic uploads from the ... Davis Weatherlink website to Weather Underground, ... logger - the newly introduced logger model that has an Ethernet ...
    (uk.sci.weather)
  • Re: Videogeet.Com Youtube and Google Ads
    ... I have uploaded on youtube or uploaded on my website or have given to ... to post my YT uploads on your Videogeet.com site, I must say I am both ... Your treatment of the ads on the Videogeet site as a trivial matter is ... when you contacted me about using my video ...
    (rec.music.indian.misc)
  • cant rename file
    ... a webcam that uploads an image with a .tmp extension. ... renamed to the file name used on the website. ...
    (microsoft.public.inetserver.iis.ftp)