Bug #16000 Updated: fpassthru and timeouts
| From: | yohgaki@php.net | Date: | Sat, 04 May 2002 03:33:38 +0000 |
| Subject: | Bug #16000 Updated: fpassthru and timeouts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6873@lists.php.net to get a copy of this message | ||
ID: 16000
Updated by: yohgaki@php.net
Reported By: lance_laureys@3com.com
-Status: Open
+Status: Feedback
Bug Type: Output Control
Operating System: 2000 Server
PHP Version: 4.1.2
New Comment:
Some browsers have hard coded timeout.
Try different browsers see if it helps.
Previous Comments:
------------------------------------------------------------------------
[2002-03-11 11:28:34] lance_laureys@3com.com
There seems to be a timeout problems with using fpassthru.
Code :
header( "Content-type: application/octet-stream" );
header( "Content-Length: $c_ByteSize" );
header( "Content-Disposition: attachment; filename=\"$F\"" );
$fp = fopen("D:\\CarrierFTP_Files\\".odbc_result($result,
"FilePath").$F,"r") or die("Can't find file.");
fpassthru($fp);
When the person starts getting the file, after 5 min 2 sec it quits and
tells me it has finished.
I have increased timeouts everywhere, but it never gets the file.
Suggestions on this?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16000&edit=1