i want to need upload above 100mb file,i was successfully
upload 75mb using .htaccess file ,but i can put 101mb
file,it was not upload..please give some tips..local server
its work perfectly but online it doesn't work..
.htaccess file details
AddHandler application/x-httpd-php .php
php_value post_max_size 200M
php_value upload_max_filesize 200M
php_value memory_limit 300M
php_value output_buffering on
php_value max_execution_time 259200
php_value max_input_time 259200
php_value session.cookie_lifetime 0
php_value session.gc_maxlifetime 259200
php_value default_socket_timeout 259200



i want to need upload above 100mb file,i was successfully upload 75mb using .htaccess file ,but i c..

Answer / amitverma

All settings are almost perfect except the missing one and
basically it's related to Apache directive settings -

TimeOut

The default value for this directive is 300 seconds, try to
raise it and see if it produces the desired results.

One more thing, try to use MAX_FILE_SIZE syntax in your
HTML form, as follows -
<input type="hidden" name="MAX_FILE_SIZE" value="200000" />


Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How can we display information of a variable and readable by human with php?

0 Answers  


What's the diff. between include() and Include_once().

5 Answers   Intrack,


What's the best method for sanitizing user input with php?

0 Answers  


How to reset/destroy a cookie in php?

0 Answers  


Is php still relevant 2019?

0 Answers  






What is baseurl?

0 Answers  


what is difference between PHP4 , PHP5

0 Answers   Net Solution,


What is a query in php?

0 Answers  


Whether One-line comment begin with pound sing(#) in php?

2 Answers  


What is split function in php?

0 Answers  


Explain about a search-friendly site looks like?

0 Answers  


How long is session timeout?

0 Answers  


Categories