Hola tengo este  script  redimencionador, la cuestion es que no me esta  redimencionando las imagenes  que tengo en otra  web, pese  a que  si llamo la imagen directamente ( sin efectos  de  redimencion), esta  si se carga, que puede ser lo que esta  fallando????
 
Asi llamo la imagen  
http://www.miweb.com/redimenci.php?i...jq9.jpg&tipe=2  
<?php  
switch($_GET['tipe']){
case 1:
$anchura="220"; 
$hmax="200";
break;
case 2:
$anchura="100"; 
$hmax="100";
break;
default:
$anchura="220"; 
$hmax="200";
break;
}  
$nombre=$_GET['imagen']; 
$datos = getimagesize($nombre); 
if($datos[2]==1){$img = @imagecreatefromgif($nombre);} 
if($datos[2]==2){$img = @imagecreatefromjpeg($nombre);} 
if($datos[2]==3){$img = @imagecreatefrompng($nombre);} 
$ratio = ($datos[0] / $anchura); 
$altura = ($datos[1] / $ratio); 
if($altura>$hmax){$anchura2=$hmax*$anchura/$altura;$altura=$hmax;$anchura=$anchura2;} 
$thumb = imagecreatetruecolor($anchura,$altura); 
imagecopyresampled($thumb, $img, 0, 0, 0, 0, $anchura, $altura, $datos[0], $datos[1]); 
if($datos[2]==1){header("Content-type: image/gif"); imagegif($thumb);} 
if($datos[2]==2){header("Content-type: image/jpeg");imagejpeg($thumb);} 
if($datos[2]==3){header("Content-type: image/png");imagepng($thumb); } 
imagedestroy($thumb); 
?>