Phpinfo() not displaying anything!

When i execute the file phpinfo.php with contents as below,


It shows nothing!
Also, when i click any other php page which i created it shows as, “The website declined to show this webpage, HTTP 403” . Please see the attached file.

What could be the problem? Please help.

thanks in advance,

write like this;

echo phpinfo();

it will shows about all info of php in your system.

Hello ramki067,

you should use echo to view the info.

echo phpinfo();

I tried that, Now its showing,
You don’t have permission to access /php/php-cgi.exe/phpinfo.php on this server.”

Thats now a problem with OS file permissions on the server in which you are using.