Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/09/2008, 03:47
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 1 mes
Puntos: 2534
Respuesta: Mostrar imagen con php (.php?path=imagen.jpg)

img.php
Código PHP:
<?php
  $imagen 
$_GET['path'];
  if (
is_file($imagen))
  {
    
$ext substr($imagenstrrpos($imagen'.') + 1); // extension

    
header('content-type: image/'.$ext);
    
readfile($imagen);
    exit;
  }
?>
me imagino que haciendo algo así, suerte!

Código HTML:
<img src="img.php?path=ruta/de/foo.jpg" alt="PHP"/> 
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.