Daniel
Daniel

Reputation: 629

Apache Problem, phpinfo gives following arror

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

Answers (2)

Raj
Raj

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

user557846
user557846

Reputation:

not possible, there has to be something else in the file.

<?php
phpinfo();
?>

Upvotes: 1

Related Questions