Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/01/2012, 07:06
Avatar de humanista
humanista
 
Fecha de Ingreso: abril-2005
Mensajes: 878
Antigüedad: 19 años
Puntos: 15
Error en filesize y filetype

Código PHP:
$nombre_fichero "http://dattatecblog.com/wp-content/uploads/2011/03/chrome_logo_2011_03_16-e1300292626226.jpg";


list(
$width$height) = getimagesize($nombre_fichero); // va bien

echo filetype($nombre_fichero);
echo 
"<br>";
echo 
filesize($nombre_fichero);
echo 
"<br>";
echo 
$width "x" $height
El ancho y alto me va bien pero no el filesize ni el filetype, qué puede estar mal?

Estos son los errores que me salen:

Warning: filetype() [function.filetype]: Lstat failed for http://dattatecblog.com/wp-content/u...0292626226.jpg in /home/virtual/web.com/index.php on line 22


Warning: filesize() [function.filesize]: stat failed for http://dattatecblog.com/wp-content/u...0292626226.jpg in /home/virtual/web.com/index.php on line 24

500x498 (esto está bien)

Última edición por humanista; 07/01/2012 a las 07:44