Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include file issue

Status
Not open for further replies.

rjoubert

Programmer
Oct 2, 2003
1,843
US
I recently took over a website that was created using Dreamweaver. The website is just a simple, static HTML site with no bells and whistles. Every single page has it's own footer section that I want to put into an include file. I tried adding the following line near the bottom of each page...

<!--#include file="footer.htm" -->

...but the footer section does not show up. The include file contains HTML for a Table with two simple rows, the include line is before the </body> tag of each page, and I have copied the footer.htm include file to the web server. What on Earth could I be missing?
 
I've also tried adding the include file line through the Dreamweaver interface (Insert - Server side include), and the syntax it adds is exactly what I added manually.
 
Does your server support SSI?

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Pardon my ignorance, but what is SSI? I don't know what the web server supports, or how it's configured, but I'm sure I could find out. Are there any other web server configuration items I could check on?
 
SSI > Server Side Includes. Some of the 'free' ISPs only process straight HTML, so won't deal with your <!--#include file="footer.htm" --> instruction

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
And most web servers do not parse SSI in files with .html (or .htm) extension. You might need to change the extension of the main file where include happens to .shtml or even better, ask you host how they have it configured.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top