So basically you want to display the contents of a file.txt from your server onto the page in the browser?
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Included dot text file</title>
<style type="text/css">
#imported {
width:250px;
height:158px;
position:absolute;
}
</style>
</head>
<body>
//the page HTML goes here, you can make it look how ever you want. Then
//when you want the file.txt shown use php include function:
<div id="imported">
<?php include 'http://yoursite.com/file.txt'; ?>
</div>
//and where ever you put that the .txt will appear.
</body>
</html>
Of course, this may not be what you are talking about, exactly, but php include is one of the easiest ways to include other file types or other page's codes in a certain spot.
Bookmarks