#18618 [Opn->Fbk]: Become too slow actions when I cancel file download.

From: Date: Mon, 29 Jul 2002 06:11:32 +0000
Subject: #18618 [Opn->Fbk]: Become too slow actions when I cancel file download.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15473@lists.php.net to get a copy of this message
ID: 18618 Updated by: yohgaki@php.net Reported By: youngga@hotmail.com -Status: Open +Status: Feedback -Bug Type: Filesystem function related +Bug Type: Performance problem Operating System: redhat 7.2 PHP Version: 4.2.2 New Comment: 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/ Previous Comments: ------------------------------------------------------------------------ [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 (#15473) next »