For IIS (5.0 or higher), are there alternatives to apache's .htaccess directives php_flag and php_value to set PHP_INI_PERDIR config values?
Thanks.
For IIS (5.0 or higher), are there alternatives to apache's .htaccess directives php_flag and php_value to set PHP_INI_PERDIR config values?
Thanks.
Unfortunately, it seems that PHP_INI_PERDIR values cannot be modified (only PHP_INI_USER can). Here is the official information from php.net regarding changes of PHP configuration on Windows:
http://www.php.net/manual/en/configuration.changes.php#configuration.changes.windows
Since PHP 5.3.0, you can use .user.ini files.
Do a phpinfo()
, and find these entries:
user_ini.filename is the name of the per-directory config file. Its value is usually .user.ini.
The format of .user.ini is just like php.ini. For example, it may contain something like this:
; Override value of upload_max_filesize
upload_max_filesize = 4M
Run phpinfo()
again to check that the value has been overridden by your .user.ini.
Notes: