WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. sleeplessinDC
    Member
    Posted 1 year 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. birgire
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic