|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #32288 fopen(ftp://...) request file SIZE
Submitted: 2005-03-13 04:36 UTC Modified: 2008-12-18 11:54 UTC
From: romaneos at gmail dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.8 OS: Win 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: romaneos at gmail dot com
New email:
PHP Version: OS:


 [2005-03-13 04:36 UTC] romaneos at gmail dot com
When I using fopen(ftp://...) my FTP-server show that this function request file size:

5:09:18 - anonymous > SIZE /Pictures/image.jpg
5:09:18 - anonymous > 213 122387

but as I know fstat() could'n return FileSize for FTP

Reproduce code:
$fp = fopen("ftp://".$ftp_server_user.":".urlencode($ftp_server_pass)."@".$ftp_server_name.":".$ftp_port.$dir_id."/".$file_id, "r");

Expected result:
I'd like that fstat() return FileSize at least, for FTP

Your Bunny Wrote  :)) (don't pay attention to this text)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-18 11:54 UTC] romaneos at gmail dot com
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 14:01:32 2024 UTC