How to change the maximum upload file size in PHP

L'Antre du Tryphon

schedule
2014-04-28 | 18:00h
update
2014-04-28 | 18:00h
person
www.ctheroux.com
domain
www.ctheroux.com

How to change the maximum upload file size in PHP

You can increase the maximum upload file size for only one application by creating a php.ini file in the directory where the file upload PHP script is. Add the following lines:

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

; Must be greater than or equal to upload_max_filesize
post_max_size = 40M

It can also be changed system wide by editing the file /etc/php5/apache2/php.ini which is the global php.ini file. Modify the two lines listed above and restart apache.

Advertisement

Imprint
Responsible for the content:
www.ctheroux.com
Privacy & Terms of Use:
www.ctheroux.com
Mobile website via:
WordPress AMP Plugin
Last AMPHTML update:
06.04.2024 - 03:34:52
Privacy-Data & cookie usage: