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
 [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: Fri Mar 29 06:01:29 2024 UTC