What I want to do is simply display a plain text file on the screen with a couple of buttons underneath it. From what I've read, the way to do this is to turn it into a very basic xml file and reference that. So I have in my header:
Code: Select all
<?php
$file = $_GET['file'];
$output = '<xml id="Txt" src="'.$file.'"></xml>';
echo $output;
?>
Code: Select all
<textarea name="displayfile" datasrc="#Txt" cols="80" rows="20">
</textarea>
xml file is very simple:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<TextOnly>
<Content>
(here is my content)
</Content>
</TextOnly>