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.
Old March 4th, 2007, 1:45 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2007
2 posts
Gave thanks: 0
Thanked 0 times
Using include files

Hey, I'm trying to build a very simple, basic-HTML site on a reseller account, using include files for the header, footer, and rail. Just basic HTML (because that's the extent of my knowledge, alas).

I'm using the standard include format, e.g. (inside brackets):

!--#include virtual="/includes/header.txt"--

I've got a test file in the public html folder, and subfolder for includes within that folder. But the includes just aren't showing up. And my coding is correct, because I uploaded these files to a Yahoo hosting account and they worked fine.

What's wrong? Am I supposed to turn on some option in the cpanel or WHM to make include files work? I'm stumped (but stumping me doesn't take much ...)

Any guidance appreciated.

thanks
dkopesh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 4th, 2007, 2:19 PM   #2 (permalink)
Surpass Fan
Comfy Contributor
 
Rick's Avatar
 
Joined in Sep 2004
Hosted on Pass42
279 posts
Gave thanks: 4
Thanked 50 times
I believe the filename needs to end with .shtml and not just .html.
__________________
Rick is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 4th, 2007, 2:35 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2007
2 posts
Gave thanks: 0
Thanked 0 times
thanks Rick

Rick, thank you, when I changed the extension to .shtml, the includes worked. (Why is that necessary on Surpass servers but not in a Yahoo hosting account?)

Now, my follow up question: Is a Web site in which all the pages are .shtml a bad idea? Any detriment in search engine rankings, etc., for those types of pages?

thanks
dkopesh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 4th, 2007, 2:55 PM   #4 (permalink)
Surpass Fan
Comfy Contributor
 
Rick's Avatar
 
Joined in Sep 2004
Hosted on Pass42
279 posts
Gave thanks: 4
Thanked 50 times
I'm pretty sure this is a server setting. But from my experience this is how most hosting companies are set up and Yahoo is one of the exceptions. As for search engines I don't think it makes a difference to them. However, you don't need to make all files end with .shtml, just the ones with includes in them.
__________________
Rick is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 5th, 2007, 2:47 PM   #5 (permalink)
muffins
Excelling Contributor
 
jordanriane's Avatar
 
Joined in Mar 2006
Lives in Chicago, IL
Hosted on NONE
644 posts
Gave thanks: 26
Thanked 34 times
If you plan on using any kind of php files, you can always include like:

Code:
 <?php include('filename.php') ?>
__________________
{o,o} O RLY? atourworst.org - mywhmcs.com
|)__)
-"-"-
jordanriane is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 5th, 2007, 7:35 PM   #6 (permalink)
Registered User
Excelling Contributor
 
dubLeE's Avatar
 
Joined in Oct 2004
Hosted on pass61/63
623 posts
Gave thanks: 8
Thanked 2 times
Quote:
Originally Posted by jordanriane View Post
If you plan on using any kind of php files, you can always include like:

Code:
 <?php include('filename.php') ?>
yeah i use that code every time, especially for headers and footers, so that only one file needs to be edited.
__________________
Bronze Reseller :
- Pass 61
- Pass 63

dubLeE.com
dubLeE is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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