Increase PHP’s File Upload Limit Using php.ini
The file upload size limit is usually set pretty low by shared hosting providers. Why? To save bandwidth, keep the server moving quickly, and think about it -- how many customers really need a large upload limit? If you do need to increase the maximum upload limit, all you need to do is place the following code snippet in your php.ini file:
file_uploads = On
upload_max_filesize = 10M //needs to be in {x}M format
Note that not all hosting providers allow customers to increase the file upload limit. Take that into consideration when purchasing your customer's web hosting.
![Camera and Video Control with HTML5]()
Client-side APIs on mobile and desktop devices are quickly providing the same APIs. Of course our mobile devices got access to some of these APIs first, but those APIs are slowly making their way to the desktop. One of those APIs is the getUserMedia API...
![Convert XML to JSON with JavaScript]()
If you follow me on Twitter, you know that I've been working on a super top secret mobile application using Appcelerator Titanium. The experience has been great: using JavaScript to create easy to write, easy to test, native mobile apps has been fun. My...
![Making the Firefox Logo from HTML]()
When each new t-shirt means staving off laundry for yet another day, swag quickly becomes the most coveted perk at any tech company. Mozilla WebDev had pretty much everything going for it: brilliant people, interesting problems, awesome office. Everything except a t-shirt.
That had to change.
The basic...
![Dynamically Create Charts Using MooTools MilkChart and Google Analytics]()
The prospect of creating graphics charts with JavaScript is exciting. It's also the perfect use of JavaScript -- creating non-essential features with unobtrusive scripting. I've created a mix of PHP (the Analytics class), HTML, and MooTools JavaScript that will connect to Google Analytics...
Thanks, I’m trying to figure out how to make it so music can be played on my blog as soon as others click on. Thanks for the updates.
or just use:
that will allow uploads and set maximum size to 500mb
Sorry it is not working… When i changed this, after executing in IE, it throws a javascript error with restriction of 8MB. and in mozilla and chrome, it restricts 2MB file.. help me
Maybe another solution would be with a .htaccess file with something like:
php_value memory_limit 36M
php_value post_max_size 36M
php_value upload_max_filesize 32M
Hey Rafael,
I have no idea how to locate the php.ini file. Is this in my local hard drive? I use a macbook Pro. No luck so far. Can you please help out a noob? thanks in advance :)
If you increase the upload_max_filesize parameter in php.ini, you have to increase the maximum size of POST data as well. That includes the file upload and other form data. The parameter name is post_max_size.
is there any limit in
upload_max_filesize
? i mean 64M or 128M etcYou say php_value memory_limit 36M and post_max_size 36M, it’s ok but upload max filesize 32M. Good I Think It’s Better System.