473,324 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Server Side Includes problem

18
My SSIs don't seem to be working.
I have all the files uploaded but my header and footer aren't showing up.
I started working on my website in .html but then renamed the extension to .shtml for SSIs.
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html>
  3. <head>
  4. <link rel="stylesheet" type="text/css" href="css.css" media="screen"/><title>Current Project(s)</title>
  5. <style type="text/css"></style>
  6. </head>
  7.  
  8. <body id="wip">
  9.  
  10. <div id="container">
  11.     <!-- #include FILE="header.shtml" -->
  12.  
  13.   <div id="body">
  14. This page is still under construction.
  15.   </div>
  16.   <!-- #include FILE="footer.shtml" -->
  17. </div>
  18. </body>
  19. </html>
  20.  
I'm not sure, it may be the server that I'm using. I'm not used to it.
I upload my files under a public_html folder and I thought that was it
It works if I rename everything to .php but I would really like to know how to solve the problem instead of just going around it.
Nov 15 '09 #1
2 1479
Markus
6,050 Expert 4TB
There should be no space between the opening <!-- and #.

Expand|Select|Wrap|Line Numbers
  1. <!-- correct -->
  2. <!--#include FILE="..." -->
  3. <!-- wrong -->
  4. <!-- #include FILE="..." -->
  5.  
Nov 16 '09 #2
koager
18
ooooh. never really noticed that.
Thank you
Nov 16 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
0
by: ActiveUp | last post by:
http://www.activeup.com/products/components/activecalendar Active Calendar is an ASP.NET server control that allows users to select a date and/or time quickly using a professional looking date...
7
by: MyndPhlyp | last post by:
I am building up a library of Class'es that represent various columns of table layouts. One often used column is "name" and each occurrence is treated identically. (What a concept, eh?) Part of...
26
by: David W. Fenton | last post by:
A client is panicking about their large Access application, which has been running smoothly with 100s of thousands of records for quite some time. They have a big project in the next year that will...
11
by: Tom | last post by:
Hi all, I posted the same question one week ago in http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo...
3
by: Earl Teigrob | last post by:
I wanted my "Terms and Conditions" Checkbox control to participate in my ASP.NET validation just like all the the other controls on the page. After some time of searching the web for an example of...
6
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
1
by: Martin Olson | last post by:
is there a way to get the WebDev.WebServer for VS2005 to process server side includes??? thanks for your help on this, mo
3
by: catlover30 | last post by:
I am creating a website using DIV tags for the layout, and attaching the template to a CSS style sheet. I was given an html file that already included the banner and server side includes for...
10
by: RN1 | last post by:
The book I am referring to learn ASP states the following about server- side includes: ============================================== The code in a server-side include file is inserted into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.