Phpinfo() not displaying anything!

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


<html>
<body>
<?
phpinfo();
?>
</body>
</html>

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,
Ramki

write like this;

<?php
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,
“Forbidden
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.