★ wanayoo — archive 1999 http://www.php.net/manual/function.getlastmod.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to PHP options/info
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
PHP options/info
* error_log
* error_reporting
* extension_loaded
* getenv
* get_cfg_var
* get_current_user
* get_magic_quotes_gpc
* get_magic_quotes_runtime
* getlastmod
* getmyinode
* getmypid
* getmyuid
* getrusage
* phpinfo
* phpversion
* php_logo_guid
* php_sapi_name
* putenv
* set_magic_quotes_runtime
* set_time_limit
* zend_logo_guid
* get_loaded_extensions
* get_extension_funcs
* get_required_files
* get_included_files
Manual: getlastmod
View the source code for this pageSearch the site



Previous page
 get_magic_quotes_runtime
 Updated
Sat, 12 Aug 2000
getmyinode 
Next page


getlastmod

(PHP3 , PHP4 )

getlastmod -- Get time of last page modification.

Description

int getlastmod (void)

Returns the time of the last modification of the current page. The value returned is a Unix timestamp, suitable for feeding to date(). Returns false on error.

Example 1. getlastmod() example


// outputs e.g. 'Last modified: March 04 1998 20:43:59.'
echo "Last modified: ".date( "F d Y H:i:s.", getlastmod() );
      

See alse date(), getmyuid(), get_current_user(), getmyinode(), and getmypid().


User Contributed Notes: getlastmod



29-Jun-1999 02:01
If you want this functionality for the parent web page you should use getlastmod() i.e.
<pre>
&lt;?php echo "Last modified: ".date( "F d Y H:i:s.", getlastmod() ); ?>
</pre>
within the included page... i.e. as a commont footer include for all pages



 About Notes


Previous page
 get_magic_quotes_runtime
 Updated
Sat, 12 Aug 2000
getmyinode 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.