I get a "cannot find server" error when I run this. What I intended was to test for each file and create code to display it if it exists.
<?
for($i = 1; $i < 10; ++$i)
{
$tfile = $path.$file.sprintf("%02d",$i).$ext;
$nfile = @fopen("$tfile","r"
;
if($nfile)
{
print $bcode.$tfile.$ecode."<br>\n";
}
}
?>
<?
for($i = 1; $i < 10; ++$i)
{
$tfile = $path.$file.sprintf("%02d",$i).$ext;
$nfile = @fopen("$tfile","r"
if($nfile)
{
print $bcode.$tfile.$ecode."<br>\n";
}
}
?>