note 54660 deleted from function.copy by nlopess
| From: | nlopess@php.net | Date: | Tue, 12 Jul 2005 08:39:11 +0000 |
| Subject: | note 54660 deleted from function.copy by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91788@lists.php.net to get a copy of this message | ||
Note Submitter: donald
----
Copying on some systems (Windows?) with the source and destination file the same truncates the file
to zero length. This caused me no end of headaches. Use:
<?php
if($src!=$dst) {
copy($src, $dst);
}
?>