Page Last updated question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Warmbells

    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_MODIF IED"--></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
  • Rik

    #2
    Re: Page Last updated question

    Warmbells wrote:[color=blue]
    > 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_MODIF IED"--></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?[/color]

    Maybe:


    Grtz,
    --
    Rik Wasmus


    Comment

    • Kim André Akerø

      #3
      Re: Page Last updated question

      Warmbells wrote:
      [color=blue]
      > 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_MODIF IED"--></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?[/color]

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

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

      Format a local time/date according to locale settings



      --
      Kim André Akerø
      - kimandre@NOSPAM betadome.com
      (remove NOSPAM to contact me directly)

      Comment

      Working...