#26622 [Opn->Bgs]: Download problem with session
| From: | sniper@php.net | Date: | Mon, 15 Dec 2003 01:51:31 +0000 |
| Subject: | #26622 [Opn->Bgs]: Download problem with session | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52053@lists.php.net to get a copy of this message | ||
ID: 26622
Updated by: sniper@php.net
Reported By: dozoyousan at mail dot goo dot ne dot jp
-Status: Open
+Status: Bogus
-Bug Type: Unknown/Other Function
+Bug Type: *General Issues
Operating System: windows2000
PHP Version: 4.3.4
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Try reading the various user notes in the header and session pages in
the manual. This is not PHP bug..
Previous Comments:
------------------------------------------------------------------------
[2003-12-14 20:37:34] dozoyousan at mail dot goo dot ne dot jp
Description:
------------
When I used session , don't download in Web browser.
Reproduce code:
---------------
<?
// session_start(); // <= no plobrem
session_start(); // <= don't download
$file_name = "Download.csv";
$file_ptr = fopen($file_name, "w");
for( $i = 0; $i < 9; $i++ )
fwrite( $file_ptr, "$i, ".($i+1).", ".($i+2)."\n" );
fclose( $file_ptr );
header("Content-Disposition: attachment; filename=$file_name");
header("Content-type: application/octet-stream");
readfile($file_name);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26622&edit=1