You are here: Re: Page Last updated question « PHP Programming Language « IT news, forums, messages
Re: Page Last updated question

Posted by Kim Andrι Akerψ on 05/29/06 03:34

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ΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация