Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/05/2007, 14:18
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Re: Problemas con getimagesize

Sólo es un problema de string y concatenación.

Un ejemplo que funciona:

Código PHP:
<html>
<?php
    $var2 
getimagesize("tomate.jpg");
    
$link="window.open('tomate.jpg', 'popup', 'width=".($var2[0]+20).", height=".($var2[1]+20)."');";
?>
<body>
    <a href="#" onClick="<?php echo $link;?>">
    <img src="tomate.jpg" width="85" height="70" hspace="3" vspace="3" border="0" align="left">
    </a>
</body>
</html>
Adaptalo.