Reputation: 629
Simply 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.
Upvotes: 1
Views: 183
Reputation: 22946
You might be using
$this->phpinfo();
Try using simply
phpinfo();
More info here http://php.net/manual/en/function.phpinfo.php
Upvotes: 0
Reputation:
not possible, there has to be something else in the file.
<?php
phpinfo();
?>
Upvotes: 1