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?
Missing Code The most common reason for a blank page is that the script is missing a character. If you left out a ' or } or ; somewhere, your PHP won't work. You don't get an error; you just get a blank screen.
Because every system is setup differently, phpinfo() is commonly used to check configuration settings and for available predefined variables on a given system. phpinfo() is also a valuable debugging tool as it contains all EGPCS (Environment, GET, POST, Cookie, Server) data.
Write phpinfo(); in it. Go to the browser and type my "thisproject. dev/info. php"
phpinfo() is disabled for free accounts on that particular hosting provider. You have to upgrade if you want access to phpinfo().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With