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 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.
(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

Add a Patch

Pull Requests

Add a Pull Request

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: Mon May 27 14:01:32 2024 UTC