.htaccess vs PHP - how to win the battle?

  • Thread starter Thread starter Chris W
  • Start date Start date
C

Chris W

Guest
I heard I can set "php flags" in my .htaccess to override the 25mb upload limit set by my service provider.

What should I add to my .htaccess to make this happen, and what's the limit of the upload I can do?

Thanks in advance -- I'll test it on a sandbox server first, and if it works, you get the points.
 
no need for that .htaccess modification.
include this code into your upload page. it will programmatically manipulate the limit of your upload capacity

ini_set("post_max_size","60M");
ini_set("session.gc_maxlifetime","10800"); //depending on the speed
ini_set("upload_max_filesize", "100M"); //file size
 
Back
Top