Forum Moderators: mack

Message Too Old, No Replies

Server Side Includes and Windows Servers

         

albroun

3:03 pm on Feb 16, 2004 (gmt 0)

10+ Year Member



Hi

I have been told that I cannot use SSI on a particular server because it is a Windows, not a Linux server.

This is a major nuisance because I often need to update the menu which is shared across all the pages. On my own site I do this with SSI - fantastic.

Is there any other way of doing this short of using an extended search and replace function within an html hand-coding tool (which mine performs very clumsily)?

They told me I could use Front Page Extensions - YUK!

Thanks

mcavill

3:09 pm on Feb 16, 2004 (gmt 0)

10+ Year Member



if you're using asp you could include your menu with <!-- #include file = "menu.asp" --> type of thing - otherwize the find and replace in UltraEdit seems to work quite well...

pageoneresults

3:22 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It shouldn't matter what type of server it is. Your host just needs to implement support for SSI. If they don't, you can always use the <!--webbot--> command...

<!--webbot bot="include" u-include="http://www.example.com/file.htm" tag="body" -->

In reference to the ASP include mentioned above. You can also use a virtual include command which does not require that the file be at the same directory level...

<!-- #include virtual="http://www.example.com/file.asp" -->

P.S. The <!--webbot--> command is probably going to be much easier to manage than SSI. Also, it does not require that you change any file extensions.

albroun

8:30 pm on Feb 16, 2004 (gmt 0)

10+ Year Member



Hi

The webbot include stuff looks ideal but I dont know how to use asp.

How much asp woukd I need to know to implement it?

Thanks

pageoneresults

8:33 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The
<!--webbot-->
is a FrontPage include and is understood by Windows Servers. Basically you build your include files as you would with any other include. With FP includes or
<!--webbot-->
s, you build the page just like any other page leaving in all of the head data (
<head></head>
). The webbot will only include what is between the
<body></body>
tags of the include file.

P.S. I would make one and test first before diving in.

albroun

10:32 am on Feb 17, 2004 (gmt 0)

10+ Year Member



hi - have tried it out as you suggest but no results. I tried both methods.

here is the code I used for the page:
--------------------------------------------------
<html>
<head>
<title></title>
<meta name="Description" content="">
<meta name="Keywords" content="">
<meta name="Author" content="Alasdair Broun">
<meta name="Generator" content="AceHTML 4 Pro">
</head>
<body>
This is a test document to see if the webbot include system works.

<p>
<!--webbot bot="include" u-include="http://www.whatever.co.uk/testincl.htm" tag="body" -->
</p>

<p>
<!-- #include virtual="http://www.whatever.co.uk/testincl.htm" -->
</p>
The test include contains an image and text which should appear above.

</body>
</html>

-----------------------------------------------------

and here is the included page:

-------------------------------------------------------

<html>
<head>
<title></title>
<meta name="Description" content="">
<meta name="Keywords" content="">
<meta name="Author" content="Alasdair Broun">
<meta name="Generator" content="AceHTML 4 Pro">
</head>
<body>
<img src="images/button.jpg" border="0" width="95" height="49" alt="back to home page">
This image and this text is part of the include

</body>
</html>

---------------------------------------------------

hav I omitted something?

Thanks