Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2014-12-26 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls