icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Php Not Working

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Closed Thread
 
LinkBack Thread Tools Search this Thread Rate Thread
Old August 1st, 2003, 4:16 AM   #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.
niplore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 2nd, 2003, 1:20 AM   #2 (permalink)
Registered User
Comfy Contributor
 
OmicroN's Avatar
 
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
OmicroN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 2nd, 2003, 5:17 PM   #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.
niplore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 3rd, 2003, 4:45 AM   #4 (permalink)
Registered User
Comfy Contributor
 
OmicroN's Avatar
 
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
OmicroN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 4th, 2003, 8:30 AM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2003
5 posts
Gave thanks: 0
Thanked 0 times
there is nothing there
niplore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 4th, 2003, 8:46 AM   #6 (permalink)
Registered User
Comfy Contributor
 
OmicroN's Avatar
 
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
OmicroN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On