Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: (nrd) How long have you been sitting on my server?

by newrisedesigns (Curate)
on Jan 27, 2003 at 20:11 UTC ( #230338=note: print w/replies, xml ) Need Help??


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

  • Comment on Re^3: (nrd) How long have you been sitting on my server?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://230338]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-06-26 18:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (585 votes). Check out past polls.