header('Content-type: '.$mime); header('Content-disposition: filename="'.$name.'"'); header('Content-length: '.$info['size']); header('Cache-control: private');
if (strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) { header('Content-Type: "' . $mime . '"'); header('Content-Disposition: attachment; filename="' . $name . '"'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header("Content-Transfer-Encoding: binary"); header('Pragma: public'); header("Content-Length: " . $info['size']); } else { header('Content-Type: "' . $mime . '"'); header('Content-Disposition: attachment; filename="' . $name . '"'); header("Content-Transfer-Encoding: binary"); header('Expires: 0'); header('Pragma: no-cache'); header("Content-Length: " . $info['size']); }
It looks like you're new here. If you want to get involved, click one of these buttons!