Page 1 of 1

Checking file creation date on the web?

Posted: Wed May 09, 2007 2:17 am
by Simon
Hi,
Was wondering if anybody had code for checking the creation date of a document (.pdf) on a website?
I'm trying to update the users documents to the most current version but want to compare the two dates before I download.

Thanks,
Simon

Re: Checking file creation date on the web?

Posted: Mon May 28, 2007 2:46 pm
by Mark Smith
Simon, you can do this with ftp.

Say your web server's address is "someServer.com" and the file is in a directory "www/files", then

Code: Select all

put URL "ftp://someServer.com/www/files/" into fld "someField"
or, if authentication is needed

Code: Select all

put URL "ftp://username:password@someServer.com/www/files/" into fld "someField"

will put a list of the files in that directory into fld "someField"

The list will include the names of the files, their creation dates and stuff like their permissions. Just parse the list to get the info you need.


Best,

Mark

Posted: Tue May 29, 2007 5:12 am
by Simon
Thanks again Mark!