From:             [EMAIL PROTECTED]
Operating system: 2000 Server
PHP version:      4.1.2
PHP Bug Type:     Output Control
Bug description:  fpassthru and timeouts

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 bug report at http://bugs.php.net/?id=16000&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16000&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16000&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16000&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16000&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16000&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16000&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16000&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16000&r=submittedtwice

Reply via email to