Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

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?

like image 795
Lpc_dark Avatar asked Jul 07 '12 17:07

Lpc_dark


People also ask

Why is my PHP page blank?

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.

What does the Phpinfo () function provide?

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.

How do I find Phpinfo in CMD?

Write phpinfo(); in it. Go to the browser and type my "thisproject. dev/info. php"


1 Answers

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

like image 107
brezanac Avatar answered Nov 16 '22 01:11

brezanac