PDA

View Full Version : SSI Server Side Includes Tutorial. Pt 4: Save the code.


entimp
10-30-2003, 10:58 PM
Intro (http://www.htmlforums.com/all-around-tutorials/t-ssi-server-side-includes-tutorial-25590.html) - Pt 2 (http://www.htmlforums.com/all-around-tutorials/t-ssi-server-side-includes-tutorial-pt-2-the-ssi-25616.html) - Pt3 (http://www.htmlforums.com/all-around-tutorials/t-ssi-server-side-includes-tutorial-pt-3-the-code-for-our-example-25644.html) - Pt4 - Pt5 (http://www.htmlforums.com/all-around-tutorials/t-ssi-server-side-includes-tutorial-pt-5-yay-it-is-all-over-30535.html)

At long last part 4 and then maybe part 5.
Yeah I am getting my finger out! ;)

The last section looked at the code we are going to use. We need to chop it up, save it with the correct extensions and then deploy it. It is wise to use names that make sense when you save these files as you are going to repeat the use of them. If you can come up with better names for yours files then credit to you, but these work for me.

When saving them create a new folder called 'includes' and save them all to there.

Save this as: meta_and_header.asp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">

<head>
<title>Bioology for Newbies</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="title" content="Biology for Newbies... a new biology resource">
<meta name="description" content="Biological resources.">
<meta name="keywords" content="biology, science, evolution, genetics, blah, blah,">
<meta name="owner" content="email@address">
<meta name="author" content="authors names">
<meat http-equiv="charset" content="ISO-8859-1">
<meta http-equiv="CONTENT-LANGUAGE" CONTENT="English">
<meta http-equiv="VW96.OBJECT TYPE" CONTENT="Homepage">
<meta name="rating" content="General">
<meta name="robots" content="index,follow">
<meta name="revisit-after" content="2 weeks">
</head>

<body>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="2">
<img src="image_files/header.jpg" alt="Page logo">
</td>
</tr>
<tr valign="top">
<td width="200" align="left" valign="top">
Save this as: nav.asp
Navigation<br>
<br>
<a href="fambiologists/list.asp">Famous Biologists</a><br>
<a href="links/links.asp">Biology Links</a><br>
<a href="j_articles.asp">Journal Articles</a><br>
<a href="gallery.asp">Gallery</a>
Save this as: before_content.asp
</td>
<td>
There is no save for the content area, yet anyway. I hope you saw this coming.

Save this as: after_content.asp
</td>
</tr>
<tr>
<td colspan="2">

For the footer area there is no code either... yet!

Save this as: end_page.asp
<td>
</tr>
</table>

</body>
</html>

Ok we have our includes and are ready to use them. See the next part.

Intro (http://www.htmlforums.com/all-around-tutorials/t-ssi-server-side-includes-tutorial-25590.html) - Pt 2 (http://www.htmlforums.com/all-around-tutorials/t-ssi-server-side-includes-tutorial-pt-2-the-ssi-25616.html) - Pt3 (http://www.htmlforums.com/all-around-tutorials/t-ssi-server-side-includes-tutorial-pt-3-the-code-for-our-example-25644.html) - Pt4 - Pt5 (http://www.htmlforums.com/all-around-tutorials/t-ssi-server-side-includes-tutorial-pt-5-yay-it-is-all-over-30535.html)

entimp
10-30-2003, 11:25 PM
Whoops ignore this.

Pegasus
10-30-2003, 11:54 PM
Your sig link to page 5 leads back to page 1. The thread number should be 30535. *g* But other than that and maybe a whisper about 'about time', it looks good.

You haven't quite managed to lose me yet.

Peg

sh00ter555
02-21-2004, 04:21 PM
Sorry if im annoying u, but i just think you are the one that will finally be able to help me understand this stuff.
Ok, so i created each one of these files and put them in a new folder called 'includes', but what do u mean by:

There is no save for the content area, yet anyway. I hope you saw this coming.

and...

For the footer area there is no code either... yet!

???

entimp
02-23-2004, 11:40 PM
See part 5 for the content adding.