Lpc_dark Lpc_dark - 6 months ago 36
PHP Question

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

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

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

works perfectly. What could possibly be the problem?


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