note 29992 modified in function.copy by vrana

From: Date: Tue, 17 Aug 2004 14:55:28 +0000
Subject: note 29992 modified in function.copy by vrana
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79784@lists.php.net to get a copy of this message
Im using windows2000 with apache and php4.3.0. I have noticed that copying a zero size file does actually work but PHP thinks it didn't. <?php if(copy("d:/dirsrc/file.txt", "d:/dirdest/file.txt")) { //The copy works but does not end up here... echo "Copy worked"; }else{ //...It ends up here echo "file.txt is in dirdest but ended up here"; } ?> --was-- Im using windows2000 with apache and php4.3.0. I have noticed that copying a zero size file does actually work but PHP thinks it didn't. if(copy("d:/dirsrc/file.txt", "d:/dirdest/file.txt")) { //The copy works but does not end up here... echo "Copy worked"; }else{ //...It ends up here echo "file.txt is in dirdest but ended up here"; } http://php.net/manual/en/function.copy.php

« previous php.notes (#79784) next »