Re: Výzva ke stažení souboru -- Velbloud, velbloud@gmail.com -- 18.08.2005 19:17:31 Vystrizek kodu z jedne aplikace, jako $ctype dej defaultne "application/force-download" pokud nevis co a jak, jinak tam muze bejt jakej koliv typ: $file = "tmp/program.exe" $ctype = "application/octet-stream"; //Zacatek zasilani hlavicek header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); //Zaslu typ souboru header("Content-Type: $ctype"); header("Content-Disposition: attachment; filename=".basename($file).";"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($file)); readfile($file); exit;