gracias Gator eso ya lo resolvi gracias a ti jeje
ahora estoy intentando recuperar las variables en otro script pero me marca estos errores
Cita: Warning: filesize() [function.filesize]: stat failed for H: in C:\AppServ\www\verpdf.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\verpdf.php:4) in C:\AppServ\www\verpdf.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\verpdf.php:4) in C:\AppServ\www\verpdf.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\verpdf.php:4) in C:\AppServ\www\verpdf.php on line 7
Warning: readfile(H: ) [function.readfile]: failed to open stream: Permission denied in C:\AppServ\www\verpdf.php on line 9
aki esta el codigo
Cita: <?
$fichero= $_GET['ruta'];// particion q debe abrir H: o I: o J:
$abrir= $_GET['pdf'];// nombre del archivo ejem. PA009I0468.pdf
$tam = filesize($fichero.$abrir);
header("Content-type: application/pdf");
header("Content-Length: $tam");
header("Content-Disposition: inline; filename=proyecto.pdf");
$file=$fichero.$abrir;
readfile($file);
?>
otra cosa de la q me di cuenta es q en la url no envia mi pdf
pdf= a nada mira asi lo he puesto
Cita: <input name="verpdfapen" type="image" disabled="disabled" id="verpdfI0" onclick="window.open('verpdf.php?ruta=<?php echo $fichero; ?> & pdf=<?php echo $abrir; ?>')" src="iconitoPDF.gif" />
espero me puedan ayudar mil gracias!!!