DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

PHP INI Variables require to Upload 100 MB Video File

By: Shailesh Singh | 22 Nov 2008 7:25 am

I was uploading Large Video file through PHP... 

after doing so many search and experiment i have created a list of Variables that are require to alter for uploading Large File on server..

<IfModule mod_php5.c>
php_value upload_max_filesize 200M
php_value post_max_size 500M
php_value memory_limit 1G
php_value max_execution_time 10800
php_value max_input_time 10800
php_value session.gc_maxlifetime 10800
</IfModule>

php_value memory_limit - Set higher default php_value memory_limit in .htaccess

upload_max_filesize 5M - it increases default upload limit. The default upload limit is 2MB. the above htaccess increase increases file limit 2mb to 5 mb

php_value max_execution_time:

Set the number of seconds a script is allowed to run. If this is reached,

the script returns a fatal error. The default limit is 30 seconds or, if it

exists, the max_execution_time value defined in the configuration file. If

seconds is set to zero, no time limit is imposed.

php_value session.gc_maxlifetime:

The session.gc_maxlifetime only sets the age of the session files that will be deleted when

garbage collection runs.

php_value upload_max_filesize:

this define the howmuch file size u can uplod on server at one time 

php_value post_max_size:

This Define the Max Post size through PHP on server.. because when u press the Upload button the video file is send as post command..

 

Hope this will Help u and u dont have to do Search and experiments.
 
Bye

Comments

sfdsf dsf dsf sdfdsfdsf dsfdsfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddfs

sdfffffffffff

By: | 29 Dec 2009

very useful

thnx

By: | 27 May 2009

nice

By: | 05 May 2010

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move