i have a basic image viewer for my site...
<html>
<?php
$error=0;
if($img == '') {
$error=1;
echo 'No image specified';
}
?>
<head>
<title>Image Viewer - <?php echo $img; ?></title>
</head>
<body>
<center>
<img src="<?php echo $img; ?>" alt="<?php echo $img; ?>">
<br>
<p>Image Source:<? echo "$img"; ?></p>
</body>
</html>
how can i mirror this simplicity with a simple php text file viewer?
cheers,
matt