473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Page Last updated question

Hello,

Most of the pages on the site I manage are html with a few with php
snippits on them which are named .php, on the html pages I have a 'Last
Updated' piece of code as follows

Last updated on <strong><!--#config timefmt="%e %B, %Y"-->
<!--#echo var="LAST_MODIFIED"--></strong>

This works fine and gives me the day, month and year it was last
uploaded to the server. I've tried a few combinations of <?php include
once ( different code snippets here); ?> but can't seem to get it to
show when it was last uploaded, can someone point me in the right direction?

Thanks
May 28 '06 #1
2 1485
Rik
Warmbells wrote:
Hello,

Most of the pages on the site I manage are html with a few with php
snippits on them which are named .php, on the html pages I have a
'Last Updated' piece of code as follows

Last updated on <strong><!--#config timefmt="%e %B, %Y"-->
<!--#echo var="LAST_MODIFIED"--></strong>

This works fine and gives me the day, month and year it was last
uploaded to the server. I've tried a few combinations of <?php include
once ( different code snippets here); ?> but can't seem to get it to
show when it was last uploaded, can someone point me in the right
direction?


Maybe:
http://nl2.php.net/manual/en/function.filemtime.php

Grtz,
--
Rik Wasmus
May 29 '06 #2
Warmbells wrote:
Hello,

Most of the pages on the site I manage are html with a few with php
snippits on them which are named .php, on the html pages I have a
'Last Updated' piece of code as follows

Last updated on <strong><!--#config timefmt="%e %B, %Y"-->
<!--#echo var="LAST_MODIFIED"--></strong>

This works fine and gives me the day, month and year it was last
uploaded to the server. I've tried a few combinations of <?php
include once ( different code snippets here); ?> but can't seem to
get it to show when it was last uploaded, can someone point me in the
right direction?


This will be a correct replacement of the SSI code above:

Last updated on <strong><?php
echo strftime("%e %B, %Y",getlastmod());
?></strong>

http://php.net/strftime
http://php.net/getlastmod

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
May 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: teenzbutler | last post by:
I have a 10mb ASP file, which will not load in IE 6.0. I get an HTTP 500 error. When I convert the 10mb file to HTML, it loads fine. Is there a limitation on file size? If so, is there a tag I...
3
by: Toby Briggs | last post by:
Hi there, New to here! I'm trying to find a script which let's people know when a page has been last updated! I've got a script, but it gives the date as mm/dd/yyyy! I would prefer...
4
by: Emilio | last post by:
Hi, I have a form that contains various server validation controls, the submit button will either open a popup box or a popup window on the client-side click event. The question is, how do I...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
1
by: Mike Grace | last post by:
Hi, I have a gridview which is using a SqlDataSource to update a table. The SqlDatasource is using a stored procedure to update the table. If I edit a row, change a value and click update...
0
by: jaimebienlesfruits | last post by:
Is there a script I can include on the bottom of each page to indicate when the page was last updated? The PHP timstamp thing doesn't seem to work as it reflects the date of visit on the user's part....
1
by: Larry L [in Honolulu] | last post by:
I know how to use javascript to print the date a page was last updated in the HTML itself, but - Is it possible through javascript, to add something to the url of a page to find the date that...
1
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
10
by: optimistx | last post by:
Is there a way for a bookmarklet to know, when exactly the page was loaded or refreshed? If yes, how? :)
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.