<?php
function GenerarVisor ()
{
  $texto .= <<<HASTAQUI
<html>
<head>
<title>Zoom</title>
</head>
<body>
<?php
  \$foto=\$_GET['foto'];
  print <<<AQUI
<a href="../\$foto"><img src="800x\$foto"></a>
AQUI;
?>
</body>
</html>
HASTAQUI;
  $fp = fopen("zoom.php", "w");
  fputs ($fp, $texto);
  fclose($fp);
}
?>