phpinfo() is not working it shows blank page but other php working

Lpc_dark picture Lpc_dark · Jul 7, 2012 · Viewed 48.2k times · Source

I am completely lost as to why this is happening. I am on a server x10hosting. I have a PHP file named "phpinfo.php". Inside this file it says

<?php phpinfo(); ?>

It doesn't say <? phpinfo(); ?>

For all I can tell it should be perfectly fine. If I try other PHP code they work.

For example

<?php
echo '<div>hello World</div'; 
?>

works perfectly. What could possibly be the problem?

Answer

brezanac picture brezanac · Jul 7, 2012

phpinfo() is disabled for free accounts on that particular hosting provider. You have to upgrade if you want access to phpinfo().