Solved

Inserting a text file into a page

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now