onlydarksets

Just another WordPress.com weblog

Increasing PHP upload limits

Posted by onlydarksets on January 29, 2009

My hosting provider has the default limits for uploading files via PHP set pretty low (2MB).  To get around that, they allow custom php.ini files, but they don’t tell you where to put them or what to put in them.

Create a text file called “php.ini” and place it in the directory where the script is going to run.  I read that it a custom php.ini file is applied to subdirectories, but that was not the case in my setup.  The custom php.ini should have the following:

upload_max_filesize=100M
post_max_size=100M

Leave a comment