Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
hereで述べたように、 PHP_INI_PERDIRIIS で PHP を実行している場合、ラベル付けされた php ini 値を簡単に変更することはできません。
PHP_INI_PERDIR
php.ini設定を使用して設定できない、ini_set()または設定できないPHP_INI_USER(したがって、Windowsレジストリで設定できない-そう思われる)ために、サイトごとまたはディレクトリごとに同様の機能を提供する方法はありますかとにかく、ini設定を入れるのにひどい場所のように)?
ini_set()
PHP_INI_USER
PHP 5.3 以降を使用している場合、同様の機能が実際に存在します。
php.ini を簡単に編集して、既存の php.ini ファイルの最後に、変更する各サイトごとに次のようなエントリを追加できます。
[PATH=C:/code/website1.com/] upload_max_filesize = 2M [PATH=C:/code/website2.com/] upload_max_filesize = 12M