Apache Problem, phpinfo gives following arror
Sim开发者_C百科ply calling phpinfo(); gives the following info..
Fatal error: Using $this when not in object context in /var/www/phpinfo.php on line 2
It is a fresh Ubuntu + Apache install on Amazon EC2.
not possible, there has to be something else in the file.
<?php
phpinfo();
?>
You might be using
$this->phpinfo();
Try using simply
phpinfo();
More info here http://php.net/manual/en/function.phpinfo.php
精彩评论