cvs: phpweb /bin get-user-notes
| From: | Jim Winstead | Date: | Tue, 28 Aug 2001 06:18:03 +0000 |
| Subject: | cvs: phpweb /bin get-user-notes | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6156@lists.php.net to get a copy of this message | ||
jimw Tue Aug 28 02:18:03 2001 EDT
Modified files:
/phpweb/bin get-user-notes
Log:
set timestamp of file to latest entry to reduce rsync load a little
Index: phpweb/bin/get-user-notes
diff -u phpweb/bin/get-user-notes:1.1 phpweb/bin/get-user-notes:1.2
--- phpweb/bin/get-user-notes:1.1 Tue Aug 28 00:50:56 2001
+++ phpweb/bin/get-user-notes Tue Aug 28 02:18:03 2001
@@ -26,12 +26,15 @@
unlink($file);
}
+ $mtime = filemtime($file);
if (!($file = @fopen($file,"a"))) {
echo "unable to open $notes file $hash\n";
continue;
}
fputs($file,"$id|$sect|$rate|$ts|$user|".base64_encode($note)."\n");
fclose($file);
+
+ touch($file, $mtime < $ts ? $ts : $mtime);
}
// vim: set ft=php3 : :