Forum Moderators: coopster
For example - if php.ini has the max size at 2M and I change it in .htaccess (or ini_set) to 8M but PHP is not set up to allow the change, what will get_ini show? I assume the 2M. What will it show if the change is allowed?
php.ini. I'll use error_reporting() [php.net] to demonstrate:
<pre>
<?php
print ini_get('error_reporting') . "\n"; // default on this server is 4095
ini_set('error_reporting', E_ALL);
print ini_get('error_reporting') . "\n";
ini_set('error_reporting', E_NOTICE);
print ini_get('error_reporting') . "\n";
?>
</pre>
// Prints:
4095
2047
8
[edit]or not ;)[/edit]
[edited by: eelixduppy at 6:51 pm (utc) on June 28, 2006]
PHP_INI_PERDIRwhich means it can only be changed in
php.ini,
.htaccessor
httpd.conf.
[php.net...]
I think with ini_set you cannot use the short-hand syntax. You must specify an integer in bytes.
Actually you can use shorthand notation [php.net] with upload_max_filesize [php.net].
You may not use these shorthand notations outside of php.ini, instead use an integer value of bytes.I should have checked if it was changable with ini_set first. ;)