note 110227 rejected from function.header by googleguy
| From: | googleguy@php.net | Date: | Wed, 03 Oct 2012 09:50:26 +0000 |
| Subject: | note 110227 rejected from function.header by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191112@lists.php.net to get a copy of this message | ||
Note Submitter: bilalkhalidraja at yahoo dot com
----
Hi,
I have created a function to generate CSV file of mysql table.Is there anyway i can remove the auto
download option from my header function?????
My code looks like this:
$file_name = "Register_" . date('l');
$file_name.=".csv";
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=$file_name");
header("Pragma: no-cache");
header("Expires: 0");
print "$header\n$data";
Help me please