PDA

View Full Version : Server Side Includes...




tjwett
Mar 22, 2003, 08:05 PM
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.



MacCoaster
Mar 22, 2003, 09:09 PM
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

Rower_CPU
Mar 22, 2003, 11:15 PM
Here's some info, and even though it's about Apache, should help you out:

http://www.macdevcenter.com/pub/a/mac/2001/12/14/apache_two.html?page=2

mrjamin
Mar 23, 2003, 07:44 AM
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.