How to size up PHP Upload Maximum via .htaccess

How to size up PHP Upload Maximum via .htaccess is pretty easy. This is very usefull for example if you run into your wordpress foto upload limit. Just add the following code to your .htaccess file in the web directory. (In this case up to 40 Megabyte)

the corresponding settings in the php.ini would be:

After modifying your php.ini file, you need to restart your HTTP server to use the new configuration.

If you can’t change your php.ini,  you may use ini_set within the script.

Helpful: use ini_get to check the actual settings in a php file:

Another Tip: show global an local settings of php.ini(s):

If you prefer this article as podcast, click the embedded video

Leave a Comment