note 40037 deleted from function.copy by aidan

From: Date: Mon, 30 Aug 2004 07:02:39 +0000
Subject: note 40037 deleted from function.copy by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75642@lists.php.net to get a copy of this message
Note Submitter: ---- To avoid warnings if destination file already exists but can still be overwritten, you don't need lots of code. Just use the "@" operator which filters all such warnings from the generated output... <?php if (!@copy($src, $dst)) { echo $src, ' could not be copied to ', $dst; } ?>

« previous php.notes (#75642) next »