PHP-Code:
	
	
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$save_as_name\"");
readfile($dl_file); 
danke
fra7l7
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$save_as_name\"");
readfile($dl_file); 

if(isset($dlp) OR !empty($dlp)):
    if(preg_match("/^[a-zA-Z0-9]{24}$/",$dlp)):
        $get_dl_properties = mysql_query("SELECT * FROM download_management WHERE kdnr = '".escaper($userinfo['kdnr'])."' AND auftrags_nr = ".escaper($nr)." AND code_name = '".escaper($dlp)."'");
        if($get_dl_properties):
               $update_dl = mysql_query("UPDATE download_management SET hits = hits +1, last_hit = NOW() WHERE kdnr = '".escaper($userinfo['kdnr'])."' AND auftrags_nr = ".escaper($nr)." AND code_name = '".escaper($dlp)."'");
            if(!$update_dl) trigger_error(mysql_error(),E_USER_ERROR);
            $get_dl = mysql_fetch_array($get_dl_properties);
            $save_as_name = str_replace(" ","_",$get_dl['org_name'].$get_dl['extension']);
            $dl_file = $dl_path.$userinfo['kdnr']."/".$nr."/".$userinfo['kdnr']."-".$nr."-".$dlp.$get_dl['extension'];
            if(is_file($dl_file)):
                header("Content-Type: application/octet-stream");
                header("Content-Disposition: attachment; filename=\"$save_as_name\"");
                readfile($dl_file);
                unset($dl_file,$dlp);
                exit;
            else:
                 header("Location:[url]https://inside-past.com/[/url]".$_SERVER['PHP_SELF']."?pg=14");
            endif;
        else:
              unset($dlp);
               trigger_error(mysql_error(),E_USER_ERROR);
               header("Location:[url]https://inside-past.com/[/url]".$_SERVER['PHP_SELF']."?pg=14");
        endif;
    else:
           unset($dlp);
           header("Location:[url]https://inside-past.com/[/url]".$_SERVER['PHP_SELF']."?pg=14");
    endif;
endif; 
header("Location: https://inside-past.com/".$_SERVER['PHP_SELF']."?pg=14"); 

							
						
							
						
 weil ich keine lösung sah, .... dann  
  wegen den 150 steinen für das scheiß ssl zertifikat und nun  
 -> weil das hing gar nicht an den header sondern am session verhalten  
Kommentar