View Full Version : "SSI" newbie question pls help!


yh0p2
06-24-2003, 06:35 AM
Hey, i am a newbie at this "SSI" and i have a bit problem with it. i host my own server, which i enabled SSI on apache. it seemed working, but i still dont get how i include stuff. do i make 3 text for header, footer, or body???????????? i saw the text where lissa said "only 1 txt file'' how does that work???

Jiggawot
06-24-2003, 07:28 AM
Let's see..
First you must code it in HTML, let's say this is your page:

<html>
<head>
<title> { M O O }</title>
<style>
body { background-color: #000000; color: #FFFFFF; font-family: verdana; font-size: 8pt; }
</style>
</head>
<body>
<p>Moo! This is my page! Muwahahaha!</p>
</body>
</html>

Then, we take out the top:

<html>
<head>
<title> { M O O }</title>
<style>
body { background-color: #000000; color: #FFFFFF; font-family: verdana; font-size: 8pt; }
</style>
</head>
<body>

Save this as top.txt.
Take out the bottom:
</body>
</html>
Save as bottom.txt.

Now, this:
<p>Moo! This is my page! Muwahahaha!</p>

To make the pages join:

<!--#include file="top.txt" -->
<p>Moo! This is my page! Muwahahaha!</p>
<!--#include file="bottom.txt" -->
Save as *.shtml.

Now, upload! It looks pretty nice, actually.

yh0p2
06-24-2003, 08:23 PM
THANK YOU

Jiggawot
06-25-2003, 12:06 AM
:) No problem.