Today, We want to share with you PHP Upload File Size Limit.In this post we will show you how to change max file upload size in php.ini xampp, hear for how to increase maximum upload file size in cpanel we will give you demo and example for implement.In this post, we will learn about How to change the maximum upload file size for PHP scripts with an example.
PHP Upload File Size Limit
There are the Following The simple About PHP Upload File Size Limit Full Information With Example and source code.
As I will cover this Post with live Working example to develop php max upload size htaccess, so the php post max size for this example is following below.
using Apache localhost Ubuntu
- /etc/php/7.1/fpm For PHP 7 version and nginx
- /etc/php5/apache2/. For PHP 5 version
- /etc/php/7.1/Apache For PHP 7 and Apache
see php.ini file
1. Apache localhost Ubuntu
; Maximum allowed size for uploaded files. upload_max_filesize = 4M ; Must be greater than or equal to upload_max_filesize post_max_size = 4M
some change the values
; Maximum allowed size for uploaded files. upload_max_filesize = 512M ; Must be greater than or equal to upload_max_filesize post_max_size = 512M
and the you must restart Apache server
sudo service apache2 restart
using .htaccess files
php_value upload_max_filesize 512M php_value post_max_size 512M
ini_set('post_max_size', '512M'); ini_set('upload_max_filesize', '512M');
I hope you get an idea about PHP Upload File Size Limit.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.