php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #8187 Partial FTP Downloads
Submitted: 2000-12-09 22:52 UTC Modified: 2003-02-15 13:51 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: adam at nwmedia dot com dot au Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.3pl1 OS: All
Private report: No CVE-ID: None
 [2000-12-09 22:52 UTC] adam at nwmedia dot com dot au
Just a short simple feature request:

I'd really love the ability to be able to do partial
FTP downloads. At the moment the ftp_get() functions
download the entire file.

It'd be nice to have an optional parameter with how
many bytes to download.

The reason I ask is that it would be infinitely useful
for my FTP search engine. Being able to partial download
(say 1000 bytes) lets me know whether a particular
FTP site has a ratio or some sort of download restrictions.

Thanks in advance.

-Adam

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-15 09:02 UTC] djcricketSPAM at SPAMdjcricket dot com
I'd like to second this, but for an entirely different reason.

It would be nice if the ftp_[fput/fget] functions took a 5th, length parameter, so developers could use it similarly to fread/fwrite.

This would facilitate the ability to output the progress of the upload/download, because currently, there appears to be no way to let users know that script is actually downloading something. Developers can mearly output something like 'File downloading, please wait...' and hope the user is patient when downloading larger files.
 [2003-02-15 13:51 UTC] sesser@php.net
This feature is already in PHP 4.3.0

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 10:01:30 2025 UTC