// Set headers! if ( strpos($_SERVER['HTTP_USER_AGENT'], 'msie') || strpos($_SERVER['HTTP_USER_AGENT'], 'opera') ) { header( 'Content-Type: application/octetstream' ); header( 'Content-Disposition: inline; filename="' . $file_info['full_name'] . '"' ); } else if ( strpos($_SERVER['HTTP_USER_AGENT'], 'opera') ) { header( 'Content-Type: application/octetstream' ); header( 'Content-Disposition: attachment; filename="' . $file_info['full_name'] . '"' ); } else { header( 'Content-Type: application/octet-stream' ); header( 'Content-Disposition: attachment; filename="' . $file_info['full_name'] . '"' ); } /* // Set headers! header( 'Content-Type: application/force-download' ); header( 'Content-Disposition: attachment; filename="' . $file_info['full_name'] . '"' ); */ header( 'Content-Description: File Transfer' ); header( 'Content-Transfer-Encoding: binary' ); header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ); header( 'Cache-Control: must-revalidate' ); header( 'Pragma: public' ); header( 'Content-Length: ' . $download_size ); header( 'Content-Range: ' . $download_range );