goodby / csv

Goodby CSV is a high memory efficient flexible and extendable open-source CSV import/export library for PHP 5.3. 1. Memory Management Free This library designed for memory unbreakable. It will not be accumulated in the memory whole rows. The importer read CSV file and execute callback function line by line. 2. Multibyte support This library supports mulitbyte input/output: for example, SJIS-win, EUC-JP and UTF-8. 3. Ready to Use for Enterprise Applications Goodby CSV is fully unit-tested. The library is stable and ready to be used in large projects like enterprise applications.
MIT License
955 stars 148 forks source link

ob_start #61

Closed FadelChafai closed 8 years ago

FadelChafai commented 9 years ago

I'm using Zend Framework 1.12, to export large files I was forced in my view helper to use ob_start() before calling $exporter->export if not the script spends so much time before sending me the file

....
        ob_start();

        header("Content-Type: application/octet-stream");
        header('Content-Disposition: attachment; filename='.$filename.'.csv');

        $exporter->export('php://output', new \PdoCollection($row));

        ob_end_flush();
.....
reoring commented 8 years ago

Should not use ob_start