php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16455 "Progress Indicator" of some sort in ftp get
Submitted: 2002-04-05 12:54 UTC Modified: 2002-04-13 15:44 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: epicanis+php at dogphilosophy dot net Assigned: wez (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: epicanis+php at dogphilosophy dot net
New email:
PHP Version: OS:

 

 [2002-04-05 12:54 UTC] epicanis+php at dogphilosophy dot net
On long ftp downloads, there appears to be no way to get 
any sort of "progress" indication.  (I prefer to use the 
ftp module rather than the ftp: wrapper for fgets for the 
application in question, so that I can more easily track 
success at connecting, success at logging in, checking of 
ftp directory contents, etc). 
 
This isn't much of an issue on a web-page, where ftp 
download shouldn't take long, but when used as a CLI 
application (as I am currently) to handle a long download, 
it's hard to tell whether or not the download is going 
successfully, or not. 
 
(For simplicity, having output on stderr from the ftp_get 
function as an option would probably be quite 
sufficient...) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-05 15:41 UTC] wez@php.net
I aim to provide a means for PHP scripts to check up
on the things that you mentioned for the ftp wrapper
(rather than ftp_get) as part of the streams "refit"
for PHP 4.3
 [2002-04-05 15:51 UTC] epicanis+php at dogphilosophy dot net
If that includes checking on connection and login status, 
that'd be perfect (and I'd have no cause to use the ftp 
functions instead). 
 
In fact, if it includes the ability to fetch error 
messages that result, it would be even better.... 
 
Thanks!
 [2002-04-13 15:44 UTC] wez@php.net
Implemented in CVS.
Docs are due later.
Search the php-dev archives for my recent RFC on the
matter which includes a sample script if you can't wait
for the docs.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC