note 119621 added to function.fputcsv
| From: | pursharath dot ahuja at ebizontek dot com | Date: | Tue, 19 Jul 2016 13:56:46 +0000 |
| Subject: | note 119621 added to function.fputcsv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206051@lists.php.net to get a copy of this message | ||
if you are writing a huge data in csv file , it terminates and all results does't show up..
in this case just increase the php temp memory like this:
$fp = @fopen('php://temp/maxmemory:'. (5*1024*1024), 'w+');
header('Content-Disposition: attachment; filename="export.csv"');
header('Content-Description: File Transfer');
header('Content-Type: text/csv');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
----
Server IP: 72.52.91.14
Probable Submitter: 125.63.92.60
----
Manual Page -- http://php.net/manual/en/function.fputcsv.php
Edit -- https://master.php.net/note/edit/119621
Del: integrated -- https://master.php.net/note/delete/119621/integrated
Del: useless -- https://master.php.net/note/delete/119621/useless
Del: bad code -- https://master.php.net/note/delete/119621/bad+code
Del: spam -- https://master.php.net/note/delete/119621/spam
Del: non-english -- https://master.php.net/note/delete/119621/non-english
Del: in docs -- https://master.php.net/note/delete/119621/in+docs
Del: other reasons-- https://master.php.net/note/delete/119621
Reject -- https://master.php.net/note/reject/119621
Search -- https://master.php.net/manage/user-notes.php