-1

I just want to add something very simple to my php.ini settings

post_max_size = 2.5M
upload_max_filesize = 2.5M

But if I add a php.ini file to my documentroot, a lot of stuff changes. I'm pretty sure this is because it's no longer using the global php.ini which has some stuff in it. Can I not simply append some settings instead of overwriting everything?

Edit: My server is in CGI mode which doesn't allow me to use .htaccess to set php.ini settings.

4

1 回答 1

0

You can override ini settings:

  • right from your php script with ini_set() function.
  • in .htaccess file using format php_value setting_name setting_value
于 2013-05-29T21:18:08.553 回答