#18618 [Com]: Become too slow actions when I cancel file download.

From: Date: Mon, 29 Jul 2002 07:37:44 +0000
Subject: #18618 [Com]: Become too slow actions when I cancel file download.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15474@lists.php.net to get a copy of this message
ID: 18618 Comment by: youngga@hotmail.net Reported By: youngga@hotmail.com Status: Feedback Bug Type: Performance problem Operating System: redhat 7.2 PHP Version: 4.2.2 New Comment: It may problem of browser. There is no problem On Netscape. The problem is occered only session related pages on IE. When I changed header from Content-Disposition:attachment to inline. Problem is OK. But I should use it as attachment. So, I want know solve the problem. Previous Comments: ------------------------------------------------------------------------ [2002-07-29 02:11:31] yohgaki@php.net Category: Filesystem function related -> Performance problem It sounds like a dup, but I'm not sure. Could you try latest CVS snap http://snaps.php.net/ ------------------------------------------------------------------------ [2002-07-29 00:36:41] youngga@hotmail.com I have make download a file by using fopen() function. my code is here. ----------------------------------------------------- $down_file= "myfolder/myfile" if(@$fp=fopen($down_file, "r" )) { Header("Content-type: application/save-as"); Header("Content-Disposition:attachment; filename=".$file_name); Header("Content-Description: PHP3 Generated Data"); while( $data=fread( $fp,filesize($down_file) ) ) { print($data); } } -------------------------------------------------------- When I download a file in my browser and cancel download, the next actions are very slow. What is the problem? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18618&edit=1

« previous php.bugs (#15474) next »