#18618 [NEW]: Become too slow actions when I cancel file download.
| From: | youngga at hotmail dot com | Date: | Mon, 29 Jul 2002 04:36:42 +0000 |
| Subject: | #18618 [NEW]: Become too slow actions when I cancel file download. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15470@lists.php.net to get a copy of this message | ||
From: youngga@hotmail.com
Operating system: redhat 7.2
PHP version: 4.2.2
PHP Bug Type: Filesystem function related
Bug description: Become too slow actions when I cancel file download.
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 bug report at http://bugs.php.net/?id=18618&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18618&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18618&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18618&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18618&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18618&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18618&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18618&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18618&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18618&r=globals