Saturday July 31, 2010 @ 04:22:22 GMT+10    ( Weather:  18°C / 64°F  -  Partly Cloudy )
Home » Weblog Archives

Powered byD's Bloggie
Weblog » Archive » 2007 » April » Day 10
Browse by day ...
 05 April, 200714 April, 2007 

Tip: Larger Upload Size Limit For PHP - 12:46 pm
Guides , PHP  -  poster 

Below is a quick guide to get PHP accept larger upload file size.

Step 1.
Edit your PHP.INI file on the server
MAX_EXECUTION_TIME = 2400
MEMORY_LIMIT = 128M
POST_MAX_SIZE = 128M
UPLOAD_MAX_FILESIZE = 128M


Step 2.
Create a .htaccess file in your root folder.
php_value post_max_size 128M
php_value upload_max_size 128M


Step 3.
For HTML <FORM>
<input type="hidden" name="max_file_size" 
value="134217728">
 05 April, 200714 April, 2007 
$ view_blog.php 2009.09.17 18:16:41 $
Lost? | XML/HTML sitemap | Contact
38.107.191.87 , 19 queries , 0.0427s
Gzip enabled , CSS compressed , JS compressed
Copyright © 2005-2009 Darren's Outpost