LoginSignup
0
1

More than 5 years have passed since last update.

「php -i」コマンドで出てくる_SERVER["PWD"], _SERVER["OLDPWD"] について

Posted at

phpinfo()だと出てこないのにphp -iだと表示されるので気になって調べてみました。

_SERVER["PWD"]

「php -i」コマンドを実行した時のカレントディレクトリ

_SERVER["OLDPWD"]

「php -i」コマンドを実行した時に、ひとつ前にいたディレクトリ

補足

$_SERVERについては詳しくはこちらに記載されています。
http://php.net/manual/ja/reserved.variables.server.php

0
1
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
0
1