Php

Status
Not open for further replies.

markm18637

New Member
Messages
4
Reaction score
0
Points
0
Hello,

Not sure how to enable PHP on my system. I get the errors:

Warning: phpinfo() has been disabled for security reasons in /home/romniel/public_html/cgi/test.php on line 2

Thanks,
-Mark
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
It's as the message says: Warning: phpinfo() has been disabled for security reasons in /home/romniel/public_html/cgi/test.php on line 2

phpinfo is disable on all free hosting account due to security reasons. What did you need to know about php from that?
 

markm18637

New Member
Messages
4
Reaction score
0
Points
0
I was trying to figure out if PHP was supported. I tried to print/echo out

<?php
Print "hello";
Echo "world";
?>

but that didn't work, and I still ended up getting the error message.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
PHP is enabled.

What error message to you get with that last snippet?
 

markm18637

New Member
Messages
4
Reaction score
0
Points
0
got it working! I placed the .php file into a cgi-bin directory (which didn't work) but I placed it out side the directory and it worked.
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
I'm glad it's working for you now. Just to let you know, now, that the cgi-bin is disabled on all free hosting accounts due to security reasons. I'm sorry that I didn't catch that before now after seeing the url you provided in the error message you originally posted about.
 
Status
Not open for further replies.
Top