/    Sign up×
Community /Pin to ProfileBookmark

Last updated (External/ Internal) URL?

Entering an URLinto a field ,then press submit and see the date the requested document was updated (External/ Internal) ???

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@SpectreReturnsFeb 13.2006 — What exactly do you want to know? I believe that either date() or time() examples at php.net provide a way of checking the last modified timestamp in a file.
Copy linkTweet thisAlerts:
@bokehFeb 13.2006 — Since a URL is not a file but in fact a source of data it is not possible to put an age on "[I]the file[/I]". If on the other hand you want to when a file was last modified you can use [I]filemtime()[/I].
Copy linkTweet thisAlerts:
@SpectreReturnsFeb 13.2006 — You could probably tweak your apache so that it'd serve the last modified dates as headers (or maybe it already does this), and then open a socket to there, and rip out the headers for it. Of course, this'll only be useful on your own server, unless it does indeed already do it.
Copy linkTweet thisAlerts:
@bokehFeb 13.2006 — serve the last modified dates as headers [/QUOTE]It is true that apache could be configured to output that header but unless it is a completely static file the header is meaningless. A php file could remain unchanged for year yet be serving different data on every single request.
×

Success!

Help @Peuplarchie spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...