|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-04-02 11:01 UTC] sniper@php.net
[2003-04-07 18:43 UTC] sniper@php.net
[2003-04-08 12:29 UTC] gts at uclink dot berkeley dot edu
[2003-04-08 20:06 UTC] sniper@php.net
[2005-05-11 04:59 UTC] tjerk dot meesters at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
Have been using the following code for downloads with PHP 4.2.2 and Apache/1.3.26. Fpassthru() did not return on an aborted download (user selects cancel). Now with PHP 4.3.1 and Apache 2, aborted downloads return and give the OK message: $fp = @fopen( "$file", 'r' ); $rc = fpassthru($fp); Log("($file) ($rc) Download OK."); The value returned by fpassthru($fp) is always the full size of the file even when the download is aborted (even on very large files where there is no chance it could actually have beem read, 250MB). When tested with ===, fpassthru($fp) always returns FALSE. Same results with readfile(). What's happening here? Greg Small gts@uclink.berkeley.edu