/    Sign up×
Community /Pin to ProfileBookmark

Using PHP to show site updates.

I can hold my own when it comes to client-side developmnet, but I’m new on the block when it comes to server side stuff? . I was wondering if there was a way to write a PHP script that would display the most recently updated pages on my site. I tried googling (and searching on here), but so far only have come up with ways to do this with blog comments and the like. The site I will be running it on will be a company internal/secure site (only about 30 people with access). Theres no blogs, forums or anything for that matter, mostly just documents and spreadsheets and the like. I use “getlastmod” on all the pages, but since this script is included in the tail file for my site, and not on each individual page, I think I will have problems using that. Is this even possible with PHP, or will I have to use javascript or some other scripting language?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@andre4s_yJun 11.2007 — Hi Tj,

i do not fully understand what do you asking about.

But there is a way in php that always make that page newest one...

The way is using header http(cache-control and pragma) and header function.

You can see mo completely in

http://www.w3schools.com/php/func_http_header.asp

i hope this help you

regard,

Andre
×

Success!

Help @TJ111 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,
)...