connect( $db_host, $db_user, $db_pass, $db_db ) ; $baza->query( "select * from edysk_pliki where id = '$id'" ) ; $row = $baza->get_array() ; $filename = $row['nazwa'] ; $file = 'admin/edysk/'.$id ; $filesize = filesize( 'admin/edysk/'.$id ) ; header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); header("Content-Disposition: attachment; filename=\"".$filename."\";"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".$filesize); readfile($file); ?>