?
Solved

Can't get #include to work

Posted on 2003-11-25
2
Medium Priority
?
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
ADSaunders earned 200 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

800 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