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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 17:01:58 2024 UTC