note 22293 deleted from function.date by sniper
| From: | sniper@php.net | Date: | Sat, 11 Oct 2003 16:49:58 +0000 |
| Subject: | note 22293 deleted from function.date by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58256@lists.php.net to get a copy of this message | ||
Note Submitter: manix#at#kodezone#dot#com
----
while
<? echo date("Ymd"); ?>
echos a date in the format yyyymmdd, I wanted to use the date function to add the last.mod of my
pages in their metatags.
I used this:
<meta name="Date-Revision-yyyymmdd" content="<? print(date("Ymd",
filemtime($SCRIPT_FILENAME))); ?>">
Script prints:
<meta name="Date-Revision-yyyymmdd" content="20020613">