note 110227 added to function.header

From: Date: Wed, 03 Oct 2012 08:36:01 +0000
Subject: note 110227 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-191110@lists.php.net to get a copy of this message
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 ---- Server IP: 69.147.83.199 Probable Submitter: 81.149.149.143 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/110227 Del: integrated -- https://master.php.net/note/delete/110227/integrated Del: useless -- https://master.php.net/note/delete/110227/useless Del: bad code -- https://master.php.net/note/delete/110227/bad+code Del: spam -- https://master.php.net/note/delete/110227/spam Del: non-english -- https://master.php.net/note/delete/110227/non-english Del: in docs -- https://master.php.net/note/delete/110227/in+docs Del: other reasons-- https://master.php.net/note/delete/110227 Reject -- https://master.php.net/note/reject/110227 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191110) next »