| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Aug 2003
5 posts
Gave thanks: 0
Thanked 0 times
|
I have a simple script that goes
<? phpinfo(); ?> and thats it. but what i get is nothing. Not a thing, whenever my site tries to use php i just get it outputed as html. Im placing my files in the www folder should i be placing them elsewhere to make them work. |
|
|
|
|
#2 (permalink) |
|
Registered User
Comfy Contributor
Joined in May 2003
Lives in Florida
118 posts
Gave thanks: 0
Thanked 0 times
|
I'm guessing you're not saving your files as .php. PHP will output as text if placed inside a file with the extension .html, .dhtml, .asp, etc... Anything besides .php, .php3, and .phps. You'll pretty much always want to use .php and .phps when you want to output the source of the file; .phps will color code the outputted PHP source inside a file. Just give it a try and you'll see. B)
Oh and for the www folder thing, the www folder is basically a sub domain that points to your public_html folder. So you can use yourdomain.com and www.yourdomain.com. I suggest using public_html from now on though...
__________________
Profession: Programmer, Gamer, Web Developer Website: http://www.reanimated.net/ - Server: Quela |
|
|
|
|
#3 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Aug 2003
5 posts
Gave thanks: 0
Thanked 0 times
|
No, they are being saved as .php. Most of the work im doing now is work on the index page, the default that is, but whenever i try to create another .php page nothing happens. Not sure why that is. Oh well.
|
|
|
|
|
#4 (permalink) |
|
Registered User
Comfy Contributor
Joined in May 2003
Lives in Florida
118 posts
Gave thanks: 0
Thanked 0 times
|
Check your PMs.
__________________
Profession: Programmer, Gamer, Web Developer Website: http://www.reanimated.net/ - Server: Quela |
|
|
|
|
#6 (permalink) |
|
Registered User
Comfy Contributor
Joined in May 2003
Lives in Florida
118 posts
Gave thanks: 0
Thanked 0 times
|
:o
__________________
Profession: Programmer, Gamer, Web Developer Website: http://www.reanimated.net/ - Server: Quela |
|
|