Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/04/2004, 05:53
pablomola
 
Fecha de Ingreso: agosto-2003
Mensajes: 43
Antigüedad: 20 años, 7 meses
Puntos: 0
Bueno primero disculpas por algun error en el código "pregunta".
Segundo la respuesta ya la he encontrado:
<?
$path=$dir."cursos/ficheros/".$nombre;

$size=filesize($path);

if(file_exists($path) && is_file($path)) {

header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Pragma: no-cache');
header("Content-Type: application/pdf");
header("Content-Length: ".$size);
header("Content-Disposition: inline; filename=$nombre");

@readfile($path);

}
__________________
pwmcorg