All pastes #472672 Raw Edit

header php-problem

public php v1 · immutable
·published 2007-05-05 19:11 UTC
rendered paste body
<?php					$data = @mysql_result($result,0,"Fil_data");    					$Fil_Filnavn = basename($Fil_Filnavn);					$ie = eregi("msie", $_SERVER['HTTP_USER_AGENT']);					if ($ie)						{						$Fil_Filnavn = "test";							header("Content-type: $Fil_type"); 							header("Content-Disposition: inline; filename=\"$Fil_Filnavn\"");							header("Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0");							header("Pragma: public");						}						else							{					header("Content-type: $Fil_type"); 							header("Content-Disposition: attachment; filename=\"$Fil_Filnavn\"");						}					header("Content-Length: " .(string)($Fil_size) );				    echo $data;			exit();