Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/08/2008, 15:15
zazo
 
Fecha de Ingreso: abril-2008
Ubicación: Goppingen
Mensajes: 17
Antigüedad: 16 años
Puntos: 0
Respuesta: Abrir archivo .pdf guardado en cierta ubicacion

Hola Bytevamp te agradezco mucho tu ayuda.

mi script quedo asi :

<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Fax Datei</title>
</head>
<body>
<?

$filename=$_GET["filename"];
$pdf ='C:\\fax\\'.$filename;
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$pdf.'"');
readfile($pdf);

?>
</body>
</html>

Pero aun me sale el resultado en binario y con el siguiente mensaje:

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\fax\trae_fax.php:8) in C:\AppServ\www\fax\trae_fax.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\fax\trae_fax.php:8) in C:\AppServ\www\fax\trae_fax.php on line 12


alguna idea ?
saludos y gracias