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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 24 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Mar 05 12:01:29 2024 UTC