Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/09/2008, 08:48
chan
 
Fecha de Ingreso: abril-2005
Mensajes: 182
Antigüedad: 19 años, 1 mes
Puntos: 1
Problema con función getimagesize()

Hola Foro! estoy con un problema que me tiene desconcertado, estoy utilizando el siguiente script básico para redimensionar fotos

Código PHP:
$foto "http://www.abogados.com.ar/empleos/fotos/7c2656_nueva.jpg";
$tam getimagesize($foto);
        
if(
$tam[0] > 350 or $tam[1] > 250){
echo 
"<img src='http://www.abogados.com.ar/empleos/fotos/7c2656_nueva.jpg' width='350' heigth='250'>";
} else echo 
"<img src='http://www.abogados.com.ar/empleos/fotos/7c2656_nueva.jpg'>"
Lo que hago simplemente es chequear el ancho y alto de la foto, si los mismos superan los 350 px de ancho o los 250 px de alto, la imagen se fuerza a un tamaño fijo de 350 x 250.
La cuestion es que cuendo pruebo este script a veces funciona y a veces no, las veces que no lo hace me tira el siguiente error 500:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


A alguien se le ocurre cual puede ser el problema? por si lo quieren ver les dejo el link http://abogados.com.ar/empleos/borrar.php. De antemano Muchas Gracias!