Lpc_dark Lpc_dark - 1 year ago 82
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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download