php.net |  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
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: cyruss at galaxy dot fr
New email:
PHP Version: OS:

 

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

Thx 

cyruss 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-31 08:18 UTC] sniper@php.net
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.

--Jani

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

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC