Very basic question: how to run phpinfo() on x10hosting

multiski

New Member
Messages
3
Reaction score
0
Points
0
Hi,

I'm quite new with php and web programming. To start, I have added:
<?php
phpinfo();?>

on a page and saved it with .php extension, it works locally on my computer, I get the infos but it doesn't work when I run the file from x10hosting server, here.

Is there anything I should activate or do?

Thanks,
Pascal
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Last time I checked, phpinfo() had been disabled on Free Hosting because it is a security hole to allow visitors to see all that information.
 

ajordan91

Banned
Messages
101
Reaction score
2
Points
0
some x10hosting free-hosting servers do show phpinfo()

but to test you need to make a file with this one line of code

==>
PHP:
<?php phpinfo(); ?>
<==

save that file with the name of ==> info.php <==

in folder ==> public_html <==

note the file size will about 20 bytes

in your browser enter ==> your-accounts-domain/info.php

if you receive a blank(white) screen - phpinfo() had been disabled on you server
 
Top