last updated script

Status
Not open for further replies.

cikkolata

Ars Scholae Palatinae
836
What are you using?
It can be done easily with server side includes, by modifing the way the date gets displayed, or you could use PHP's getlastmod, the date format can be modified in any way using the code things on the date page.
For example, you might use something like their example:
Code:
<?
echo "Last modified: " . date ("F d Y H:i:s.", getlastmod());
?>

With SSI's,
Code:
<!--#config timefmt="%A %D" ->
<!--#echo var="LAST_MODIFIED" -->
or
Code:
<!--#config timefmt="%A %D" ->
<!--#flastmod file="filename.here" -->
SSI time format codes can be found on this page

Please, OpenForum, prettypretty please, don't mess up my UBB tags again, PLEASE??

[This message was edited by cikkolata on March 17, 2002 at 08:47.]
 

cikkolata

Ars Scholae Palatinae
836
Originally posted by Ruinous:
Not necessarily, though it's better to be safe than sorry. Some webservers will parse any webpage as PHP if it has PHP commands within it.

Okay then, most the time, you'll need to :p
I once used a server which .php3 was parsed by PHP3 and .php was parsed by PHP4, and nothing else worked.. So I'd usually say to do that to avoid confusion.

And seeing as he's pretty new to PHP "the only problem is that i know nothin about php" It's best to say that, rather than assume he'd know most servers want .php extensions before they'll parse the files. (or some extra lines in .htaccess files, but yeah.. you get my drift)
 
Status
Not open for further replies.