Expand|Select|Wrap|Line Numbers
- header('Content-Disposition: attachment; filename="'.$filename.'"');
- header('Content-type: text/csv');
Expand|Select|Wrap|Line Numbers
- return $this->handle = fopen('php://output','w');
Well that is how I understand it.
I then write the data then close the stream with
Expand|Select|Wrap|Line Numbers
- fclose($this->handle);
so HTML appears at the bottom of the CSV when opened.
What am I missing to close the file stream and output HTML?