tags:

views:

50

answers:

2

Hey All,

Is there any tool to know last update date of all web pages associated with website?

A: 

This highly depends on the web server you're using but the principal is the same. If you are serving static html files (they can be php, asp, htm, etc) then each file has meta data that tells you when it was last updated.

What you'll want to do is use some sort of scripting language (asp, php), or other programming language (asp.net python, perl, etc) to read the meta data out of the file and extract the last saved date.

Here's a little info on how to do it in .net (requires IIS)

Disclaimer:
This is however providing that this is YOUR website and YOU have access to the files, updates, etc.

For Joe anybody to find out the last update of a website, the information is not as accurate. One of the ways to get "some" info on when the files were updated is to use the Wayback Machine.

Edit:
Since you say you have access to those files, I would suggest you build a little .NET console app that loops through all the files and writes out the File.GetLastWriteTime of each file to a txt document. you can then simply turn that into whatever pretty spreadsheet you like.

if you're not willing to write this console app yourself (doesn't even have to be .NET), then I would suggest this question be migrated to http://superuser.com where the great community over there can help you. Remember, this IS a "programming" site.

Edit:
Here's a CodeProject Example that should get you pointed in the right direction. Take a look at "Recursive function for setting the file DateTime" You would just need to change SetLastWriteTime to GetLastWriteTime

rockinthesixstring
Are you suggesting that `File.GetLastWriteTime` will return valid information when passed a URL? Interesting. Ah... the answer has now been edited. Also the metadata you refer too may also not be returned so isn't a solid approach.
Lazarus
no I'm not suggesting that at all. The OP says it's his departments files, so he should therefore have access to the files themselves, not just the URL.
rockinthesixstring
Thanks for info....Example will help me write code for it...
neeraj
Thats correct....I have admin rights....
neeraj
I've edited my answer again for you.
rockinthesixstring
A: 

No. Unless you have administrative access to the server (last modified field via FTP) or if the website designer deliberately posted a public stats script where it lists that data, you--as a client-side user--cannot see that information.

danyim