Solved

Can't get #include to work

Posted on 2003-11-25
2
277 Views
Last Modified: 2013-11-18
I have an HTML page, test.html:

<HTML>
<Body>
Test Page<BR><BR>

<!--#include file="test.inc" -->

</Body>
</HTML>

This will not work for the life of me and I don't get why.  There IS a file called test.inc present in the current directory.  I've tried FILE and VIRTUAL with and without relative and absoltute filenames, differently named files, text only and heml content... and I can't get any results beyond the heading.  Usually the result is:

Test Page
</HT

What stupid thing am I missing?

Thanks!
0
Comment
Question by:tomrwilson
2 Comments
 
LVL 10

Accepted Solution

by:
ADSaunders earned 50 total points
ID: 9818759
Hi tomrwilson,
Doesn't the file need to an https or asp (jsp ....) before server side includes are acted on?

Cheers! .. Alan
0
 

Author Comment

by:tomrwilson
ID: 9818765
Yes, I just figured it out and was deleting the question; you must have answered seconds before I triedthe deletion.  Oh well, enjoy and thanks. :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to count occurrences of each item in an array.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now