restore .ics format header
This commit is contained in:
parent
1fa1e4f212
commit
3485e74805
|
@ -39,13 +39,11 @@
|
||||||
/* [2] Display file
|
/* [2] Display file
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
/* (1) Headers */
|
/* (1) Headers */
|
||||||
// header('Content-Type: text/calendar; charset=utf-8');
|
header('Content-Type: text/calendar; charset=utf-8');
|
||||||
// header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics');
|
header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics');
|
||||||
|
|
||||||
/* (2) Body */
|
/* (2) Body */
|
||||||
echo "<pre>";
|
|
||||||
readfile($file_name);
|
readfile($file_name);
|
||||||
echo "</pre>";
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue