How do I convert UNIX flastmod statement into PHP for WP 3.4.2? (2 posts)

  1. sleeplessinDC
    Posted 3 years ago #

    In my file I have the following:
    Updated <!--#config timefmt="%d %B %Y" --><!--#flastmod file="doc_company_resources"-->
    This doesn't work in WordPress. How do I convert it to PHP to get the date of a remote file?

    What I want to have in my page is a
    link to page .../doc_company_resources Updated 6 November 2012

  2. Birgir Erlendsson (birgire)
    Posted 3 years ago #

    You could use filemtime() and format the date with date()

Topic Closed

This topic has been closed to new replies.

About this Topic