In an .htaccess file in the same directory as the script, include this line:

php_value upload_max_filesize

where is the size of the allowable upload. For example, if the desired filesize is 5 meg, the following directive would be placed in the .htaccess:

php_value upload_max_filesize 5M

If you get a 500 Error add this code inĀ your php.ini file and place it in your root folder

upload_max_filesize = 5M
post_max_size = 5M

then add this code in your .htaccess in your root folder

suPHP_ConfigPath /home/username/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>


Happy Learning