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.
単純に phpinfo(); を呼び出します。次の情報を提供します..
致命的なエラー: 2 行目の /var/www/phpinfo.php のオブジェクト コンテキストではないときに $this を使用する
これは、Amazon EC2 での Ubuntu + Apache の新規インストールです。
不可能です。ファイルに別のものが必要です。
<?php phpinfo(); ?>
使用している可能性があります
$this->phpinfo();
シンプルに使ってみる
phpinfo();
詳細はこちらhttp://php.net/manual/en/function.phpinfo.php