|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-29 02:11 UTC] yohgaki@php.net
[2002-07-29 03:37 UTC] youngga at hotmail dot net
[2002-07-29 06:02 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
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?