philip          Mon Dec 30 01:09:56 2002 EDT

  Modified files:              
    /phpdoc/en/reference/info/functions getlastmod.xml 
  Log:
  <note>filemtime() for a different file; See also filemtime().
  
  
Index: phpdoc/en/reference/info/functions/getlastmod.xml
diff -u phpdoc/en/reference/info/functions/getlastmod.xml:1.2 
phpdoc/en/reference/info/functions/getlastmod.xml:1.3
--- phpdoc/en/reference/info/functions/getlastmod.xml:1.2       Wed Apr 17 02:39:27 
2002
+++ phpdoc/en/reference/info/functions/getlastmod.xml   Mon Dec 30 01:09:55 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/info.xml, last change in rev 1.2 -->
   <refentry id="function.getlastmod">
    <refnamediv>
@@ -20,18 +20,27 @@
       <title>getlastmod() example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 // outputs e.g. 'Last modified: March 04 1998 20:43:59.'
 echo "Last modified: " . date ("F d Y H:i:s.", getlastmod());
+?>
 ]]>
       </programlisting>
      </example>
     </para>
+    <note>
+     <simpara>
+      If you're interested in getting the last modification time 
+      of a different file, consider using <function>filemtime</function>.
+     </simpara>
+    </note>
     <para>
      See also <function>date</function>,
      <function>getmyuid</function>, <function>getmygid</function>,
      <function>get_current_user</function>,
-     <function>getmyinode</function>, and
-     <function>getmypid</function>.
+     <function>getmyinode</function>,
+     <function>getmypid</function>, and
+     <function>filemtime</function>.
     </para>
    </refsect1>
   </refentry>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to