Solved

Inserting a text file into a page

Posted on 1997-06-28
1
212 Views
Last Modified: 2013-12-25
I want to insert a text file into a web page.  The file contents will change weekly but the title will remain the same.  How can this be done without using cut and paste ?
0
Comment
Question by:quopin
[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
1 Comment
 
LVL 5

Accepted Solution

by:
julio011597 earned 100 total points
ID: 1854374
It may be done with Server Side Includes (SSI), or Common Gateway Interface (CGI).

SSI lets you write something like:

<!--#include virtual="/a_path/" file="included.txt" -->

where the virtual tag tells the server that the directory alias 'a_path' should be suffixed to the document root.
I'm afraid i don't know wether this method may have caching problems.

How to set up and enable SSI depends upon the particular web server you are on.

Second option is, of course, CGI: a CGI script lets you send on the fly whatever you need to be the page.

Rgds, julio
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
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…

734 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