note 49465 added to function.copy
| From: | info at sameprecision dot org | Date: | Fri, 28 Jan 2005 23:54:21 +0000 |
| Subject: | note 49465 added to function.copy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84140@lists.php.net to get a copy of this message | ||
When using copy on win32 (don't know about anywhere else), copy sets the 'last modified
time' of the the new copy to the current time instead of that of the source (win32 copy
preserves last modified time). If you are tracking backups by last modified time, use:
<?php
copy($src, $dest); touch($dest, filemtime($src));
?>
----
Manual Page -- http://www.php.net/manual/en/function.copy.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49465
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49465&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49465&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49465&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49465&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49465&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49465&report=yes
Search -- http://master.php.net/manage/user-notes.php