http://www.perlmonks.org?node_id=230338


in reply to Re: Re: (nrd) How long have you been sitting on my server?
in thread How long have you been sitting on my server?

What FTP server/operating system do you use?

I have a "last updated" script on my server. It checks a few directories for HTML files and sorts them according to the return value of -M. If I upload a file using FTP to my server, the value returned from -M is set to the time of the upload. I just tested this on my server using a HTML file that was two months old. It shows up first in the list, being updated "0 seconds ago" (upon reload of the CGI script).

I'm pretty sure that a file uploaded sets it's last modified value to whatever the time of upload was. If the file was copied to the FTP directory using your operating system and not via FTP, I can see how -M wouldn't work.

Hope this helps.

John J Reiser
newrisedesigns.com