LoginSignup
12
7

More than 5 years have passed since last update.

PHPの$_SERVERの値設定

Last updated at Posted at 2014-07-28

apache側で設定

.htaccessSetEnv KEY=valueで設定
$_SERVER['KEY']で取得

apacheを経由せず、PHPから参照可能に設定

/etc/profileexport KEY=valueで設定
$_SERVER['KEY']で取得
(fuel oilのように、PHPのコマンドを直接実行しても取得可能)

12
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
7