Código PHP:
<link rel="stylesheet" href="./zoneCopper.css" type="text/css">
<table class="forumline">
<?
$columnas=5;
$anchomax=100;
$altomax=100;
$reduccion="OnLoad=\"X=$anchomax;Y=$altomax;if ( this.width > X && this.height < Y ){this.height = ( X * this.height ) / this.width;this.width= X};if (this.width < X && this.height > Y ){this.width = ( Y * (this.width) ) / this.height;this.height= Y};if ( this.width > X && this.height > Y ){if (this.width/this.height>=1){{this.height = ( X * this.height ) / this.width;this.width= X}}else {this.width = ( Y * (this.width) ) / this.height;this.height= Y}}\"" ;
$origen = "images";
if ($vcarga = opendir($origen))
{ ?>
<th colspan="<?=$columnas?>">Directorio: <?=$origen?></th></tr>
<?
$cont=1;
while($file = readdir($vcarga))
{
if ($file != "." && $file != ".." && (eregi(".png",$file) || eregi(".jpeg",$file) || eregi(".jpg",$file) || eregi(".gif",$file)))
{
if ($cont==0)
{
echo "<tr>";
}
echo "<td bgcolor=\"#444444\" align=\"center\" width=\"17%\" ><br><a href=\"image.php?imagen=$origen/$file\" target=\"_blank\" ><img src=\"image.php?imagen=$origen/$file\" $reduccion border=\"0\"></a><br><br>$file</td>";
if ($cont==$columnas)
{
echo "<tr>";
$cont=0;
}
$cont++;
}
}
closedir($vcarga);
}
if ($cont==1)
{ echo"</tr>";}
?>
</table>
Pero cómo en realidad lo que quiero es que no se guarde en la caché sólo en el caso de que la imagen supere las dimensiones máximas, modifique un poco el código de la FAQ:
Código PHP:
<?php
// Cabecera de imagen
$a = getimagesize($_GET['imagen']);
header("Content-Type: " . $a['mime']);
// Cabeceras de NO CACHE
if (($a['0']>100)||($a['1']>100))
{
header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
}
// Leemos la imágen
@readfile($_GET['imagen']);
?>

Si alguién me pudiese iluminar

Salu2 ;)