PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
madhavvyas
Forum Newbie
Posts: 9 Joined: Wed Jul 26, 2006 7:10 am
Post
by madhavvyas » Wed Jul 26, 2006 7:25 am
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
bokehman
Forum Regular
Posts: 509 Joined: Wed May 11, 2005 2:33 am
Location: Alicante (Spain)
Post
by bokehman » Wed Jul 26, 2006 8:26 am
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.
ganesh.kannan
Forum Newbie
Posts: 1 Joined: Wed Jul 26, 2006 8:20 am
Location: India
Post
by ganesh.kannan » Wed Jul 26, 2006 8:30 am
Have u tried changing..
max_execution_time = 30 ; Maximum execution time of each script, in seconds
in php.ini ????
Pls try this.
madhavvyas
Forum Newbie
Posts: 9 Joined: Wed Jul 26, 2006 7:10 am
Post
by madhavvyas » Fri Aug 18, 2006 12:37 am
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 ?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Aug 18, 2006 12:39 am
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.