how to make php_info() work

Status
Not open for further replies.

sifaka

Member
Messages
46
Reaction score
0
Points
6
Hey,

I swear to Ghandi I can't find a thread that shows me how to make my php code work. I've placed it in the cgi-bin folder, also in the public html folder and double clicked on it also selected it and clicked "view" and tried linking to the php files through an html web page -- it works with the index.html file but not php files, the computer just opens an editing program and shows me the php code. Also, I saw the rules for posting once but can't find the ones I think I saw at first --about what information (personal account information) to include with each post.
Thanks much;),
sifaka
 

Ant59

New Member
Messages
72
Reaction score
0
Points
0
phpinfo() has been denied permissions to use because of security.
 

Avalanche

New Member
Messages
49
Reaction score
0
Points
0
It is spelled phpinfo();. I dont know if its enabled on your account or not, though.
Code:
<?php
   phpinfo();
?>

Hey,

I swear to Ghandi I can't find a thread that shows me how to make my php code work. I've placed it in the cgi-bin folder, also in the public html folder and double clicked on it also selected it and clicked "view" and tried linking to the php files through an html web page -- it works with the index.html file but not php files, the computer just opens an editing program and shows me the php code. Also, I saw the rules for posting once but can't find the ones I think I saw at first --about what information (personal account information) to include with each post.
Thanks much;),
sifaka
 
Last edited:

coolv1994

Member
Messages
508
Reaction score
0
Points
16
Sorry but phpinfo() is disabled on x10Hosting for some reason. And cool bunny can I use it?
 
Last edited:

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
phpinfo() is disallowed as it is a security risk. If you really need it you can apply for advanced php on your account panel.

Bryon deals with these himself. If you are getting an error from software that needs it then state this error in your application.

But for you I am sure you need only apply for intermediate php.
I am not to sure if php will run in the cgi-bin. In order to run a php script you need only do a few standard things.
PHP:
<?php
... code here...
?>
is a must.

Make sure the file extension is *.php

Make sure it is inside the /public_html/ directory. It can be inside a sub-folder (not sure about the cgi-bin).

The last 2 apply if you are running the script from a server. If the script is saved locally on your computer you will need to install Apache and php to get it to run. There are a few tutorials on this in the tutorials sub forum.
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
Oh, and the link for the forum/hosting rules are in my signature ;P
 

Avalanche

New Member
Messages
49
Reaction score
0
Points
0
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination

That should answer your question, yeah use it, it is not my work anyways. It is one of those endless ASCII arts on the net :)
 
Status
Not open for further replies.
Top