salmontrout — 2010-11-04T18:00:38-04:00 — #1
I would like to create a script that behaves differently according to the date it was uploaded to the webserver. Meaning - if I send the script to 10 friends and each one uploads it to his server on a different date - each one will get a different behavior.
if uploaddate between Jan 1...Jan15, 2010
elseif uploaddate between Jan 16...Jan31, 2010
elseif uploaddate between Feb 1...Feb 15, 2010
My question: Which function can I use to get the upload date (instead of getuploaddate() )
raffles — 2010-11-04T18:07:47-04:00 — #2
You could do this by having the script creating a new file and copying itself into it, then checking the date of creation.