Solved

Can't get #include to work

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 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