somemo programming etc.

プログラマ、雑記、プログラミング関係はLinkから、数式はこっちでまとめていることが多い

【php】cloudcontrolのサーバ変数の中身

http://cloudcontrol.com/developers/documentation/core-functions/read-only-file-system/によると、動的に生成されるファイルを格納するために$_SERVER['TMPDIR']が使えるようなので調べてみました。まずかったら、記事修正します・・・

また、同記事にMongoDBをログに使うといいよ!みたいなのが載っていたので、あとで使ってみるかも。

Array (
  [DEPLOYMENTNAME]       => [アプリ名]/default
  [DEPLOYMENTID]         => [デプロイID]
  [TMPDIR]               => /data/local/[DEPLOYMENTID]/tmp
  [HOSTNAME]             => web
  [USER]                 => [DEPLOYMENTID]
  [HOME]                 => /data/share/deployments/[DEPLOYMENTID]
  [FCGI_ROLE]            => RESPONDER
  [REDIRECT_HANDLER]     => php-fpm
  [REDIRECT_STATUS]      => 200
  [HTTP_USER_AGENT]      => Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
  [HTTP_ACCEPT]          => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  [HTTP_ACCEPT_LANGUAGE] => ja,en-us;q=0.7,en;q=0.3
  [HTTP_ACCEPT_CHARSET]  => Shift_JIS,utf-8;q=0.7,*;q=0.7
  [HTTP_HOST]            => [アプリ名].cloudcontrolled.com
  [HTTP_X_FORWARDED_FOR] => [IPアドレス]
  [HTTP_ACCEPT_ENCODING] => gzip
  [HTTP_X_VARNISH]       => [数字の羅列]
  [PATH]                 => /usr/local/bin:/usr/bin:/bin
  [SERVER_SIGNATURE]     => [空]
  [SERVER_SOFTWARE]      => Apache
  [SERVER_NAME]          => [アプリ名].cloudcontrolled.com
  [SERVER_ADDR]          => [IPアドレス2]
  [SERVER_PORT]          => [ポート番号]
  [REMOTE_ADDR]          => [IPアドレス3]
  [DOCUMENT_ROOT]        => /data/local/[DEPLOYMENTID]/current/
  [SERVER_ADMIN]         => [メールアドレス]
  [SCRIPT_FILENAME]      => /data/local/[DEPLOYMENTID]/current//index.php
  [REMOTE_PORT]          => [ポート番号2]
  [REDIRECT_URL]         => /index.php
  [GATEWAY_INTERFACE]    => CGI/1.1
  [SERVER_PROTOCOL]      => HTTP/1.1
  [REQUEST_METHOD]       => GET
  [QUERY_STRING]         =>
  [REQUEST_URI]          => /
  [SCRIPT_NAME]          => /index.php
  [PHP_SELF]             => /index.php
  [REQUEST_TIME]         => [時間(単位不明)]
)