1

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_filesizeparameters 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.

Thomas
  • 147
  • 3
  • 10

2 Answers2

2

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

Note

Your provider has to be enabled Dynamic Shared Object (DSO) Support for using php_value! Very technical documentation can you find here: http://httpd.apache.org/docs/2.4/dso.html

schellingerht
  • 5,726
  • 2
  • 28
  • 56
0

You can change through your .htaccess if you are using Apache. Add this line to your .htaccess

php_value upload_max_filesize 100M 
Ikhlak S.
  • 8,578
  • 10
  • 57
  • 77