This article describes how to change the maximum upload file size for PHP scripts by using the upload_max_filesize and post_max_size directives in an .htaccess file.
You may want to change the maximum upload file size for your web site. For example, you can set a lower limit to prevent users from uploading large files to your site. To do this, change the upload_max_filesize and post_max_size directives in an .htaccess file.
To change the maximum upload file size for your PHP scripts, follow these steps:
php_value upload_max_filesize xxM
Add the following line to the .htaccess file. Replace xx with the maximum HTTP POST file size that you want to set, in megabytes:
php_value post_max_size xxM
<?php phpinfo(); ?>
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.