Jump to content

ftp_mdtm and ftp_rawlist file mod date


ted_chou12

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.