Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > All Around Tutorials
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 06-17-2003, 09:38 PM
  #1
entimp
I Quit WoW - Gimme Rep.
 
entimp's Avatar
 
Join Date: May 2002
Location: Liverpool UK (sometimes London)
Posts: 4,897
iTrader: (0)
entimp will become famous soon enough
SSI Server Side Includes Tutorial. Pt 3: The code for our example.

Intro - Pt 2 - Pt3 - Pt4 - Pt5

In this part you will find the code for our tutorial in standard HTML. We will then chop it up to turn it into includes. The only section that wont be here is the content section. The HTML will be very basic and is more for descriptive purposes rather than practical ones. I am sure with a few tweaks you could use this code.

Biology for Newbies... I like that site idea so I might work on this one day.

ok here is the plain Html we are going to cut up.

Code:
<!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">
      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>
    </td>
    <td>
      Content Area
    </td>
  </tr>
  <tr>
    <td colspan="2">
      This is the footer area. You can place anything you want here. Like contact
      email addresses and general copyright information for example.
      Maybe even a base image.
    <td>
  </tr>
</table>

</body>
</html>
As you will see the code above is broken into 7 areas, 4 red and 3 black. The colours don't mean anything other than to show where I am going to cut these files up to make the individual include files.

Again at work and things are a little busy. So the final step will be added tomorrow. I will also create a thread with links to each one of these so they can referance with ease in the future.

Any questions fire away.

Intro - Pt 2 - Pt 3 - Pt 4 - Pt 5
__________________

Last edited by Horus_Kol : 08-26-2008 at 05:36 AM. Reason: navigation
entimp is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 08-13-2003, 03:44 PM
  #2
Pegasus
Extremely Flighty Admin
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 21,465
iTrader: (0)
Pegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to all
I only have one minor question, Entimp. Where's part 4?

Peg
__________________


Decaf is the root of all evil...
HTMLForums Awards 2008
Pegasus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 08-13-2003, 10:01 PM
  #3
entimp
I Quit WoW - Gimme Rep.
 
entimp's Avatar
 
Join Date: May 2002
Location: Liverpool UK (sometimes London)
Posts: 4,897
iTrader: (0)
entimp will become famous soon enough
Ok... I thought no-one was using this. Gimme between now and Tuesday next week to post it and make sure it flows correctly.
__________________
entimp is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 08-14-2003, 03:07 PM
  #4
giz
Is that code valid?
 
Join Date: Oct 2002
Location: UK
Posts: 3,101
iTrader: (0)
giz is on a distinguished road
How about editing the first post in each thread to have a link pointing to the previous section and another one to the next section so that having stumbled across one part it is easier to find the other parts?
giz is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 08-15-2003, 02:32 PM
  #5
entimp
I Quit WoW - Gimme Rep.
 
entimp's Avatar
 
Join Date: May 2002
Location: Liverpool UK (sometimes London)
Posts: 4,897
iTrader: (0)
entimp will become famous soon enough
I will do, I will also make a post linking them all together... and then include that in my signiture so anyone can gain access to the posts... make sense? Give me a few days to wrap it all up.
__________________
entimp is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-21-2004, 05:17 PM
  #6
sh00ter555
Champion (Level 13)
 
sh00ter555's Avatar
 
Join Date: Nov 2003
Posts: 240
iTrader: (0)
sh00ter555 is on a distinguished road
Its me again,

Ok, know im confused on the 'includes' part. what exactly does the 'includes' do? Can i just copy the code for html above and use that instead of making a bunch of .asp pages?
Would it be a lot easier for me just to make my whole table using .html and not .asp? If so what would i have to do differently?

Thanks,
Jason
__________________
Visit my work site that i made:
Valentino's Take n' Bake Pizza
or visit my fun site that i made when i was bored:
MyFlashAnimations
sh00ter555 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-21-2004, 10:21 PM
  #7
scoutt
Mister Admin to you
 
scoutt's Avatar
 
Join Date: Jul 2001
Posts: 30,730
iTrader: (0)
scoutt is a jewel in the roughscoutt is a jewel in the roughscoutt is a jewel in the rough
it cannot be html. html doesn't have any power to include. if you do not want to use .asp then you must use .shtml. but your server has to support that extension.

you can add this

<!--#include file = "includes/header.asp" -->

in a file called index.shtml and it will include the file header.html if you want. you don't have to use asp for anything, but the file that is doing the including has to be .shtml at least.
__________________
Have a Script or Snippet you want to share?

WWW Standards: HTML 4.01, CSS2.1, CSS3, XHTML 1.0
PHP Standards: PHP Standards
scoutt is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-22-2004, 12:36 AM
  #8
sh00ter555
Champion (Level 13)
 
sh00ter555's Avatar
 
Join Date: Nov 2003
Posts: 240
iTrader: (0)
sh00ter555 is on a distinguished road
Hmm,
I dont even know what shtml stands for?

I guess what im trying to figure out is, right now i currently have my website set up as frames. The address is Here. And a lot of ppl are saying frames are bad if they wanna be in serch engines and stuff, so ive decided i wanna make my next website using a table layout. Kind of like entimp has explained in his tutorial. Although im confused in a few parts of the tutorial and dont know what to do. So if i dont use .asp u said i could use .shtml. How would i do that?

Thanks for the help scoutt. Its good to know now that html wont work for it, thats one less question i have.

jason
__________________
Visit my work site that i made:
Valentino's Take n' Bake Pizza
or visit my fun site that i made when i was bored:
MyFlashAnimations
sh00ter555 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-22-2004, 11:00 AM
  #9
agent002
Resident Opera Guru
 
agent002's Avatar
 
Join Date: Feb 2003
Location: Suomi... SUOH-MIH
Posts: 6,454
iTrader: (0)
agent002 is on a distinguished road
.shtml is server-parsed HTML I think. It simply means, that it's a regular HTML file which contains SSI (server-side includes) code. To use SSI on your page, your server must support it. Just use the .shtml extension instead of .html, upload the files to your server and the server should parse the SSI tags when viewing the page.
__________________
° · o O oO
agent002 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-22-2004, 07:05 PM
  #10
sh00ter555
Champion (Level 13)
 
sh00ter555's Avatar
 
Join Date: Nov 2003
Posts: 240
iTrader: (0)
sh00ter555 is on a distinguished road
Well my host does let me use SSI i dont think? Do you know a good free server host that does? I need it to be free for the time being.
__________________
Visit my work site that i made:
Valentino's Take n' Bake Pizza
or visit my fun site that i made when i was bored:
MyFlashAnimations
sh00ter555 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-22-2004, 08:43 PM
  #11
scoutt
Mister Admin to you
 
scoutt's Avatar
 
Join Date: Jul 2001
Posts: 30,730
iTrader: (0)
scoutt is a jewel in the roughscoutt is a jewel in the roughscoutt is a jewel in the rough
nope I don't.
__________________
Have a Script or Snippet you want to share?

WWW Standards: HTML 4.01, CSS2.1, CSS3, XHTML 1.0
PHP Standards: PHP Standards
scoutt is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-22-2004, 08:59 PM
  #12
entimp
I Quit WoW - Gimme Rep.
 
entimp's Avatar
 
Join Date: May 2002
Location: Liverpool UK (sometimes London)
Posts: 4,897
iTrader: (0)
entimp will become famous soon enough
http://www.brinkster.com/

Brinkster offers free ASP hosting. You will have to investigate if they offer SSI as part of this though. Click the start button for shared hosting and the first col is the free permissions.
__________________
entimp is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 09:14 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.