Mastermason.com Forums Homepage
Forum Home Forum Home > Flea Market & Help Desk > PC Help Desk
  Active Topics Active Topics
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Server Side Includes

 Post Reply Post Reply
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
oesdistrict20 View Drop Down
Newbie
Newbie


Joined: November/01/2009
Online Status: Offline
Posts: 1
  Quote oesdistrict20 Quote  Post ReplyReply Direct Link To This Post Topic: Server Side Includes
    Posted: November/01/2009 at 4:49pm
I'm trying to learn to use SSI (Server Side Includes).  From what I've been able to figure out, the file with the "include" statement must have an ".shtml" extension.  So, in order for my main page to use SSI, I must call it "index.shtml".  However, the MasterMason.com server does not seem to like it when I use that for a name.  Am I doomed to not use SSI in my main page, or am I not understanding something here?

Thank you for your help.
Back to Top
dgresh View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: November/05/2007
Location: United States
Online Status: Offline
Posts: 270
  Quote dgresh Quote  Post ReplyReply Direct Link To This Post Posted: November/02/2009 at 7:17am
oesdistrict20,
 
I have sent you a Private Message (PM) regarding this.
 
---
dgresh
Back to Top
dgresh View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: November/05/2007
Location: United States
Online Status: Offline
Posts: 270
  Quote dgresh Quote  Post ReplyReply Direct Link To This Post Posted: November/02/2009 at 11:32am
I believe this problem has now been resolved.
 
For those of you that might be interested in a little background on this ...
 
Server Side Includes (SSI) are the ability of the host server to examine a web page to determine if it includes any properly structured, recognized commands.  If it does, take the commanded action before returning the requested page to the client's browser.  This capability is frequently used to include snippets of html into a page (e.g. navigation bar, header or footer) or run a script and include the results.
 
In order to alert the host that the requested page may include an SSI command, the requested page must use the file extension: .stm, .shtm, or .shtml.  The server then parses these pages and executes any valid SSI commands  before forwarding the results.
 
Mastermason.com supports Server Side Includes.  When the requested page was named explicitly, it worked exactly as it should.  However, we did not have default.xxx and index.xxx in the IIS Default Page list with the three permissible extensions -- .stm, .shtm, and .shtml.   This has now been corrected.
 
Life is good.
 
 
P.S.  A similar process is used with Active Server Pages (.asp).
 
---
dgresh
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.06
Copyright ©2001-2007 Web Wiz

This page was generated in 0.031 seconds.