What I'm trying to do is place a 'cut and paste' image script into an existing page and it works - kind of. The last 'include' causes an error. I'm sure it's basic, but I've been trying for the last couple of hours. Any clues ?
<?php
include("includes/body.inc");
include("includes/nav.inc");
?>
<body>
<p><b><font size="+2" face="Arial, Helvetica, sans-serif">Fish Pics.</font></b></p>
<?
echo "<BODY BACKGROUND=\"background.gif\"><CENTER><BR><IMG SRC=nbg.gif><BR><BR>";
chdir('backgrounds/');
$handle=opendir('.');
readdir($handle);
readdir($handle);
echo "<BR>";
while (($file = readdir($handle))!==false){
$size=(filesize($file)/100);
echo "<TABLE BORDER=1 BORDERCOLOR=BLUE><TR bgcolor=dddddd><TD><A HREF=backgrounds/$file><img src=backgrounds/$file width=200 height=160></A></TD><TD width=200 height=75>Name: $file <BR> Size: $size Kb</TR></TABLE>";
}
echo "<BR>";
?>
<?
include("includes/footer.inc");
?>