|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6463 ftp_mdtm - probleme with the directory
Submitted: 2000-08-31 08:09 UTC Modified: 2000-08-31 08:19 UTC
From: cyruss at galaxy dot fr Assigned:
Status: Closed Package: Other
PHP Version: 4.0.1pl2 OS: unix
Private report: No CVE-ID: None
 [2000-08-31 08:09 UTC] cyruss at galaxy dot fr
When i use the function ftp_mdtm with a directory it return me False.
This -1 means that it don t work.
When i use this function with a file there is no problem.




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-31 08:18 UTC]
From the manual:

ftp_mdtm() checks the last-modified time for a file, and returns it as a UNIX timestamp. If an error occurs, or the file does not exist, -1 is returned. Note that not all servers support this feature.


So are you absolutely sure that file exists? 
And that server supports this feature?

Please add a shortest possible reproducive script
which uses some public ftp server.


 [2000-08-31 08:19 UTC]
I should have read your bug report better.
ftp_mdtm() doesn't work with directories.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 12:01:29 2024 UTC