Just another 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:



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: