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
Checking file creation date on the web?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Location: London, UK
- Contact:
Re: Checking file creation date on the web?
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
or, if authentication is needed
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
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"
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