What you are doing by including files is called SSI, server side includes. Normally files which use SSI have an *.shtml extension but sometimes an *.html extension is supported as well.
SSI, as its name suggests, is performed server-side. Therefore, the server hosting the files needs to support it. Apparently the remote hosts you are using support SSI but your local computer does not, and therefore it won't work locally. That's okay - just upload the files and it should all work.
It's similar to how a web dev language such as PHP operates. You can't execute PHP code locally without installing Apache or the like on your home machine.
If you wish to be able to test SSI out locally, install the Apache server (windows version) on your home machine. :) Otherwise, create a folder no one knows about on your remote host to do testing :)
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
Hmmm, you could download, install Apache, spend three hours poking it until it works, then setup PHP, go back to poking Apache, and learn how to do some absic PHP scripting, and persuade your host to install it.... or you could do this:
<script type="text/html" src="header.htm"></script>
and
<script type="text/html" src="footer.htm"></script>
That only applies when including JavaScript/VBScript, not HTML files. He'd have to output his HTML using JavaScript to make that work. I wish it worked though, because that would definitely come in useful! ;)
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Hey floris, welcome back - long time no see :)
But that goes right back to the original problem ... his local computer won't execute PHP scripts :(
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
Hmmm, you could download, install Apache, spend three hours poking it until it works, then setup PHP, go back to poking Apache, and learn how to do some absic PHP scripting[/code]
or you could do it the easy way and follow this tutorial Installing Apache, PHP, and MySQL under Windows
Ragnarok
Junior Poster in Training
94 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
You could use shared borders in front page. It's sort of like using frames, but not.
Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51