Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/09/2010, 22:14
Avatar de JoeLitO
JoeLitO
 
Fecha de Ingreso: febrero-2003
Ubicación: Perú
Mensajes: 202
Antigüedad: 21 años, 2 meses
Puntos: 0
Respuesta: redimensionar imagen

ya encontre como verificar el tamaño del ancho de la imagen...

Código PHP:
<?
$destino 
'datos' ;

$archivo $_FILES['file']['tmp_name'];
       
list(
$width$height$type$attr) = getimagesize($archivo);


if(
$width<500 ) {

move_uploaded_file $_FILES 'file' ][ 'tmp_name' ], $destino '/' $_FILES 'file' ][ 'name' ]);

}

else echo(
"El archivo tiene el ancho superior al permitido el tamaño maxino es 500px.");

?>
pero... buaaahhhhhhhhh no se como aplicarlo en el archivo validacion-de-imagen.php

ayudenem por favor estoy deseperado