![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
07/03/2005, 13:41
|
| | Fecha de Ingreso: enero-2004
Mensajes: 230
Antigüedad: 21 años Puntos: 0 | |
ESTO ES LO QUE INCLUI
<?php
$file = file($_GET['BOLIVIA.JPG']);
$file2 = implode("BOLIVIA.JPG", $file);
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=archivo.jpg\r\n\r\n");
header("Content-Length: ".strlen($file2)."\n\n");
echo $file2;
?>
CON EL ENLACE DENTRO DEL HTML
<a href="BOLIVIA.JPG">enlace</a>
y me da el siguiente o los siguientes errores
Warning: file("") - No error in d:\archivos de programa\apache group\apache\htdocs\descarga.php on line 2
Warning: Bad arguments to implode() in d:\archivos de programa\apache group\apache\htdocs\descarga.php on line 3
Warning: Cannot add header information - headers already sent by (output started at d:\archivos de programa\apache group\apache\htdocs\descarga.php:2) in d:\archivos de programa\apache group\apache\htdocs\descarga.php on line 4
Warning: Cannot add header information - headers already sent by (output started at d:\archivos de programa\apache group\apache\htdocs\descarga.php:2) in d:\archivos de programa\apache group\apache\htdocs\descarga.php on line 5
Warning: Cannot add header information - headers already sent by (output started at d:\archivos de programa\apache group\apache\htdocs\descarga.php:2) in d:\archivos de programa\apache group\apache\htdocs\descarga.php on line 6
quisisera saber donde me equivoque, gracias |