mas nao estou conseguindo, está dando o famoso erro no cabeçalho, mas nao sei o pq, o arquivo contem apenas esse codigo:
<?php header("Content-Type: jpg"); // informa o tipo do arquivo ao navegador header("Content-Length: ".filesize($_GET["arquivo"])); // informa o tamanho do arquivo ao navegador header("Content-Disposition: attachment; filename=".basename($_GET["arquivo"])); // informa ao navegador que é tipo anexo e faz abrir a janela de download, tambem informa o nome do arquivo readfile($_GET["arquivo"]); // lê o arquivo exit; // aborta pós-ações ?>
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\flash\download.php:1) in C:\AppServ\www\flash\download.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\flash\download.php:1) in C:\AppServ\www\flash\download.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\flash\download.php:1) in C:\AppServ\www\flash\download.php on line 4
valeuu !