![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/04/2004, 05:53
|
| | Fecha de Ingreso: agosto-2003
Mensajes: 43
Antigüedad: 21 años, 5 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 |