I want to increase the upload size of my PHP scripts. From some google searches I have learned you do this by changing the upload_max_filesize
parameters in your php.ini.
Unfortunatly I use one.com for webhosting, and it does not give me access to my php.ini.
Can I change this parameter later? I was thinking of adding a second php.ini or to change the parameter on the index page.
You can use .htaccess
with these code:
php_value upload_max_filesize 30M // Set upload max filesize to 30MB
php_value post_max_size 30M // Set post max size to 30MB
Your provider has to be enabled
Dynamic Shared Object (DSO) Support
for usingphp_value
! Very technical documentation can you find here: http://httpd.apache.org/docs/2.4/dso.html
You can change through your .htaccess
if you are using Apache. Add this line to your .htaccess
php_value upload_max_filesize 100M
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.