php upload size?

Joe Bielli jbielli at netsos.com
Fri Jun 28 10:38:00 EDT 2002


Well be absolutely -sure- you are editing the proper php.ini :)
Also you need to restart your apache after making any such changes.
Are you running php in safe mode?

Joe

-----Original Message-----
From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf Of
Darin Perusich
Sent: Friday, June 28, 2002 10:21 AM
To: nflug at nflug.org
Subject: Re: php upload size?

thanks joe, i've tried these with no luck yet. this is very frustrating.

Joe Bielli wrote:
> Hey Darin,
> 
> One thing to keep in mind is that sometimes php.ini will be located in
> several different spots.. do a phpinfo() to see which php.ini you are
> using (mine is in /usr/local/lib/php.ini).. I had a ton of problems
with
> max_file_size also, but I've never passed it as a hidden form
variable..
> 
> Also, be sure to set these:
> 
> ; Maximum size of POST data that PHP will accept.
> post_max_size = 20M
> 
> ; Maximum allowed size for uploaded files.
> upload_max_filesize = 20M
> 
> Joe
> 
> 
> 
> -----Original Message-----
> From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf
Of
> Darin Perusich
> Sent: Thursday, June 27, 2002 10:41 AM
> To: nflug at nflug.org
> Subject: php upload size?
> 
> hello all,
> 
> i'm working on a website where i'll need to upload files to the server

> that can range in size from 1k to 20MB+. i'm running into a problem 
> where when i try and upload file larger then 8mb it failes. i've set
the
> 
> php.ini upload_max_filesize = 20M, tried setting <input type="hidden" 
> name="MAX_FILE_SIZE" value="20000000"> in the php scripts so the
browser
> 
> knows to allow it.
> 
> i don't believe it's the webserver itself, the only config option that

> controls that is LimitRequestBody which by default is set to 0 or 
> unlimited. i've tried setting it without luck.
> 
> any ideas?
> 


-- 
Darin Perusich
Unix Systems Administrator
Cognigen Corp.
darinper at cognigencorp.com





More information about the nflug mailing list