ted_chou12 Posted October 9, 2010 Share Posted October 9, 2010 Hi, I am trying to build my own ftp script, but i encounter a problem to get the filemdate for SOME of the files, ftp_mdtm returns alright for some of the files, but for some its "-1", so its rather: January 01 1970 07:59:59. I dont actually know why tat is the case, because the function ftp_rawlist returns filemtime very accurately for ALL files, however, just in this format: drwxr-x--- 10 user 99 4096 Oct 4 19:21 . But since its in a line, not in a array, so the coding becomes messy, unusable. I also tried filemtime, filectime, and getlastmod, but the first two also returns 1970, getlastmod() seems to return the mod date of the current page, not the specified page. Thanks, Ted Link to comment https://forums.phpfreaks.com/topic/215474-ftp_mdtm-and-ftp_rawlist-file-mod-date/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.