Change upload_max_filesize PHP

Friday, August 26, 2011 0 Comments

Here is the case. I dumped my localhost database and got 7.2M file size. What? Yeah. It's true. Whereas, my phpmyadmin said if the max upload is just 2M. What the.. Using bigdump seems useless, since they are a whole databases in my localhost.

So, I thought, it should be a way to change it. And here it is (I found the way) :

['How to' Section]
  1. To set/ customize the max file allowed size is inside php.ini
  2. If you could access the php.ini file, so just Open it, search for upload_max_filesize, change the value, save, exit and restart the apache. You're done.
  3. BUT, if you don't, just simple create a .htaccess file inside your root webserver and add/ write this line :
    php_value upload_max_filesize 10M
  4. Save, exit and done!
See ya ^_^

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Do you think I forgot to change this text? No, dude. I did it on purpose ahahahay..