Cita:
Iniciado por pateketrueke
que te parece si abres el script directamente en el navegador...
y nos dices que muestra... vale?
Código:
img.php?path=ruta/de/foo.jpg
Muestra nada... en blanco... basta que lo mireis vosotros
El script es
Código PHP:
<?php
$imagen = $_GET['path'];
if (is_file($imagen))
{
$ext = substr($imagen, strrpos($imagen, '.') + 1); // extension
header('content-type: image/'.$ext);
readfile($imagen);
exit;
}
?>
LAS URL's son
http://arielspain.ar.funpic.org/show.php?path=/gallery/images/09/02.jpg
y
http://arielspain.ar.funpic.org/gallery/images/09/02.jpg