note 109250 modified in function.getlastmod by danbrown

From: Date: Mon, 16 Jul 2012 16:00:25 +0000
Subject: note 109250 modified in function.getlastmod by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189239@lists.php.net to get a copy of this message
Return latest mod time of all included files:

<?php
function get_page_mod_time() {
	$incls = get_included_files();
	$incls = array_filter($incls, "is_file");
	$mod_times = array_map('filemtime', $incls);
	$mod_time = max($mod_times);

	return $mod_time;
}
?> --was-- Return latest mod time of all included files: function get_page_mod_time() { $incls = get_included_files(); $incls = array_filter($incls, "is_file"); $mod_times = array_map('filemtime', $incls); $mod_time = max($mod_times); return $mod_time; } http://php.net/manual/en/function.getlastmod.php

« previous php.notes (#189239) next »