variables_orderの設定とgetenv()推進キャンペーン : アシアルブログ

variables_orderの設定とgetenv()推進キャンペーン : アシアルブログ

PHPのgetenv()関数はC言語のgetenv()関数の単純なラッパーになっており、上記の設定に依存することなく指定した環境変数の値を取得します。
そのため、$_ENVに値が設定されていない場合でも、getenv()関数を用いれば(環境変数に値が存在する限り)取得が可能です。

$_ENVでなくgetenv()を使おうという話。このキャンペーンに参加してみます。

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">