Php download file header

header ("Cache-Control: public");
header ("Pragma: public");
header ("Content-type:application/vnd.ms-excel");
header ("Content-Disposition:attachment;filename=". $name. ".xlsx");
header ("Content-Type:APPLICATION/OCTET-STREAM");
can anyone explain the role of these parameters in general? Thank you

Php
Mar.14,2021

Headers


header( "Cache-Control: public" );//:
header( "Pragma: public" ); //http1.0
header("Content-type:application/vnd.ms-excel");//Excel
header("Content-Disposition:attachment;filename=".$name.".xlsx");//
header('Content-Type:APPLICATION/OCTET-STREAM');//
For more information, please see https://developer.mozilla.org.

on the first floor.
Menu