Solved

Can't get #include to work

Posted on 2003-11-25
2
294 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

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 discusses how to create an extensible mechanism for linked drop downs.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

803 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