else { header("Content-disposition: inline; filename=\"{$attachment['filename']}\"");
} if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "msie 6.0") !== false) { header("Expires: -1");
} header("Content-type: {$attachment['filetype']}");