Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | public function openFile($base_filename, $append_data) |
||
8 | { |
||
9 | header('Content-Encoding: UTF-8'); |
||
10 | header('Content-Type: text/csv; charset=UTF-8'); |
||
11 | header("Content-Disposition: attachment; filename=\"" . $base_filename . "_" . $append_data . ".csv\""); |
||
12 | header('Content-Transfer-Encoding: binary'); |
||
13 | header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); |
||
14 | header("Pragma: no-cache"); |
||
15 | |||
16 | $open_file = fopen('php://output', 'w'); |
||
17 | fprintf($open_file, chr(0xEF) . chr(0xBB) . chr(0xBF)); |
||
18 | |||
19 | return $open_file; |
||
20 | } |
||
40 |