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 2 1485
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
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) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
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...
|
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? :)
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
| |