php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: romaneos at gmail dot com
New email:
PHP Version: OS:

 

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

5:09:18 - anonymous  172.31.8.72 > SIZE /Pictures/image.jpg
5:09:18 - anonymous  172.31.8.72 > 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-18 11:54 UTC] romaneos at gmail dot com
a
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC