Solved

Inserting a text file into a page

Posted on 1997-06-28
1
211 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
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 is disastrous for companies and can lead to major hits on a brand, reputation, an…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

733 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