si de nuevo te faltaron comillas
print <a href=$filename."/zips/".$filename$.endfile><img src="images/zip.jpg" width="73" height="60"></div></td> ;
deberia ser asi, tenes 2 formas
Código PHP:
<?php print "<a href='".$filename."/zips/".$filename.$endfile."'><img src='images/zip.jpg' width='73' height='60'></div></td>"; ?>
o mas lindo asi
Código PHP:
<a href='<?php print $filename."/zips/".$filename.$endfile ?>'>><img src='images/zip.jpg' width='73' height='60'></div></td>