note 69363 added to function.filemtime

From: Date: Sat, 02 Sep 2006 12:15:55 +0000
Subject: note 69363 added to function.filemtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-116623@lists.php.net to get a copy of this message
@Benan Tumkaya if you compare $last_modified with $comparedate, you should strtotime($last_modified), because you did the same with $comparedate before. So the last part of your script should look like this: <? $last_modified = filemtime($fulldir); $last_modified_str= date("Y-m-d h:i:s", $last_modified); $last_modified_str2 = strtotime($last_modified_str); if($comparedate < $last_modified_str2) { echo $fulldir.'=>'.$last_modified_str; echo "<BR>"; } ?> ---- Server IP: 195.136.184.34 Probable Submitter: 62.253.96.45 (proxied: 82.26.31.227) ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.filemtime.php Edit -- https://master.php.net/note/edit/69363 Del: integrated -- https://master.php.net/note/delete/69363/integrated Del: useless -- https://master.php.net/note/delete/69363/useless Del: bad code -- https://master.php.net/note/delete/69363/bad+code Del: spam -- https://master.php.net/note/delete/69363/spam Del: non-english -- https://master.php.net/note/delete/69363/non-english Del: in docs -- https://master.php.net/note/delete/69363/in+docs Del: other reasons-- https://master.php.net/note/delete/69363 Reject -- https://master.php.net/note/reject/69363 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116623) next »