Server Side Includes...

Discussion in 'General Mac Discussion' started by tjwett, Mar 22, 2003.

  1. tjwett macrumors 68000


    May 6, 2002
    Brooklyn, NYC
    I have a real easy question that probably has an easy answer. I'm rebuilding a site for a friend and they would like it to be more modular so I'm breaking up the sections into seperate HTML pages so I can "stack" them using server side includes. Problem is, I can't seem to get them to work. The server is IIS, not Apache, no I'm using using include file rather than virtual. I can preview them just fine in Dreamweaver but the page just shows up blank when viewed live from the web. Is there a special file I need to place on the server or in the HTML pages to enable this? What do I save a ".shtml", the index page or the seperate files that it calls too? Any help would be greatly appreciated as I've scoured the web and all the tutorials seem to be geared toward people who already know what they're doing. Again, this is really basic so just the simplest of advice is needed. Thanks.
  2. MacCoaster macrumors 6502a


    Jul 15, 2002
    Washington, DC / Rochester, NY / Lexington, NC
    Use ASP 3.0

    Why not use ASP 3.0?

    <!-- #include file="./includes/sql.asp" -->

    There doesn't even have to be a single line of VBScript/JScript/etc. scripting. Just the #include part.

    There's #include virtual="blah.asp" as well, IIRC.

    edit: correction
  3. Rower_CPU Moderator emeritus


    Oct 5, 2001
    San Diego, CA
  4. mrjamin macrumors 65816


    Feb 6, 2003
    don't forget you can only use one serverside laguage at a time on first generation server technology (like IIS and Apache 1.x). Apache 2 will let you run php, asp, ssi together.

Share This Page