#39135 [Com]: fpassthru with optional argument length

From: Date: Fri, 13 Oct 2006 08:42:32 +0000
Subject: #39135 [Com]: fpassthru with optional argument length
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103502@lists.php.net to get a copy of this message
 ID:               39135
 Comment by:       charlie07 at gmx dot net
 Reported By:      third-chance at gmx dot de
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Windows XP SP2
 PHP Version:      5.1.6
 New Comment:

Since installing the PECL HTTP extension is not always possible
(especially on shared hosts), i fully support this request. Supporting
partial downloads is otherwise impossible.


Previous Comments:
------------------------------------------------------------------------

[2006-10-12 13:10:41] third-chance at gmx dot de

Description:
------------
To allow resuming http-downloads a php-script must be able to deliver a
specific range from a file. Although you can use fseek to start from a
specific offset, their is no way of telling fpassthru to stop before
the eof.
I would like to see an optional argument 'length', which stops after
sending n bytes. This would be similar to the argument of the fwrite
function.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39135&edit=1


Thread (3 messages)

« previous php.bugs (#103502) next »