note 108525 added to function.glob

From: Date: Thu, 03 May 2012 22:39:49 +0000
Subject: note 108525 added to function.glob
Groups: php.notes 
Request: Send a blank email to php-notes+get-187461@lists.php.net to get a copy of this message
get last modified time of a dir (when a file changed in dir) function dirmtime($dir) { $last_modified = 0; $files = glob($dir.'/*'); foreach ($files as $file) { if (is_dir($file)) { $modified = dirmtime($file); } else { $modified = filemtime($file); } if ($modified > $last_modified) { $last_modified = $modified; } } return $last_modified; } ---- Server IP: 208.69.120.55 Probable Submitter: 173.226.168.130 ---- Manual Page -- http://www.php.net/manual/en/function.glob.php Edit -- https://master.php.net/note/edit/108525 Del: integrated -- https://master.php.net/note/delete/108525/integrated Del: useless -- https://master.php.net/note/delete/108525/useless Del: bad code -- https://master.php.net/note/delete/108525/bad+code Del: spam -- https://master.php.net/note/delete/108525/spam Del: non-english -- https://master.php.net/note/delete/108525/non-english Del: in docs -- https://master.php.net/note/delete/108525/in+docs Del: other reasons-- https://master.php.net/note/delete/108525 Reject -- https://master.php.net/note/reject/108525 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187461) next »