Page 1 of 1

Increase file Upload Limit in PHP

Posted: Wed Jul 26, 2006 7:25 am
by madhavvyas
Hello friends

I want to upload video of size more than 20 mb
here is my php variable setting


upload_max_filesize 50M
post_max_size 8M


then also it is not working
my code is absolute fine with small file but big file it create trouble.

If I upload more than 2 MB it automatically time out
please give me solution.

Thank you

Posted: Wed Jul 26, 2006 8:26 am
by bokehman
You need to extend the script timeout. Also these settings cannot be changed from a script. They need to be set either in php.ini, the vhost or .htaccess.

Posted: Wed Jul 26, 2006 8:30 am
by ganesh.kannan
Have u tried changing..

max_execution_time = 30 ; Maximum execution time of each script, in seconds

in php.ini ????

Pls try this.

Posted: Fri Aug 18, 2006 12:37 am
by madhavvyas
Hello friend :(


upload_max_filesize=50M
max_execution_time=1600
post_max_size=8M

I set above setting in php.ini
but again it is not working

I want to upload 10,20 40 mb video from php form
tell me what can i do ?

Posted: Fri Aug 18, 2006 12:39 am
by feyd
post_max_size must be equal-to or larger than upload_max_size.

You want to upload 10 to 20 40MB files at a time? ..meaning in a single submission.