ssi include not working - do I have the html right?

They have: 36 posts

Joined: Jul 1999

in my ssi_include.shtml the code reads:

<html>
<head>
<title>ssi include trial</title>
</head>
<body>
<P>this is text in the .shtml file.
<P>the following red text should be from another file:
<!--#include file="test.txt"-->
<P>back to the original file.
</body>
</html>

then in the text.txt file, the code reads:

<font color="red">
<P>red text from test.txt
</font>

but when I open up ssi_include.shtml the "red text from test.txt" isn't there. What am I doing wrong?

also, anybody have a good website to learn about ssi ?

thanks!

----------
Dan Tucker
http://ctpball.paintballresource.com

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

<!--#include virtual="test.txt"-->

They have: 268 posts

Joined: May 1999

Hi Dan,

The script looked fine to me. Are you running it on the server? SSI has to be run off the server to show up. It ran just fine for me at discoverynet.com/~tekguy/Troop214/Document.shtml

Also your host may require you to put a different end on it. I use .shtml

I have found this tutorial useful http://adashimar.hypermart.net/ssi.htm
Hope this helps.

----------
My goal in life is found in Phillipians 4:8-9

My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214

They have: 36 posts

Joined: Jul 1999

Oh, heh, not running it on any server, just on my own computer... So let me get this straight, the includes won't work until you upload it to an ssi-enabled server? So when you are building the page on your computer you won't be able to see the included parts? that sucks... is there a way to set up your computer so that it uses ssi?

thanks jim
dan tucker

They have: 62 posts

Joined: May 1999

Hey- You are correct, it will not work until you get it on a SSI-enabled server. I don't know about getting it to work on your own computer...anyone else?

----------
Casey Hansen
www.caseynet.com

They have: 2,390 posts

Joined: Nov 1998

Dreamweaver2 reads SSIs well.
JP

----------
[red]The Next Step in Website Development [/red] - http://www.what-next.com
The Webmaster Promotion and Resource Center

They have: 36 posts

Joined: Jul 1999

what is dreamweaver2, where can I get it for free, how does it work...?

----------
Dan Tucker
http://ctpball.paintballresource.com

They have: 359 posts

Joined: Mar 1999

Dreamweaver is a WYSIWYG html editor published by Macromedia. Has a 30 day free trial and after that, well let's just say "let your conscience be your guide.":) Don't want to restart the which is best again, but it is probably one of the best editors available.

Anyway, it interprets SSI calls on your local machine. Still have to check server to see it in your browser though.

----------
Dan
http://cds-computers.com

Dan
Recycle Video Games Network

Stupidity killed the cat, curiosity was framed!

They have: 359 posts

Joined: Mar 1999

Dan,

If you include this statement in your '.htaccess' file, you don't have to rename your pages with the .shtml

AddHandler server-parsed .html

----------
Dan
http://cds-computers.com

Dan
Recycle Video Games Network

Stupidity killed the cat, curiosity was framed!

They have: 268 posts

Joined: May 1999

I just found out that if you are running windows 95 you can download a NT4 Options pack that has a personal web server on it to allow you to run ssi off your machine. It is running on my 95 machine now and works with all my browsers. It you are running windows98 it is included in the setup.

My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.