note 13513 deleted from function.copy by jimw
| From: | jimw@php.net | Date: | Fri, 07 Dec 2001 02:11:50 +0000 |
| Subject: | note 13513 deleted from function.copy by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21808@lists.php.net to get a copy of this message | ||
copy($src, $dest); will overwrite an existing $dest file without reporting.
To get around this, use
if (!file_exists($dest)){
copy($src, $dest);
} else {
# put your error stuff here
}
-
Christian Lederer