note 29992 added to function.copy
| From: | jay dot haslup at jhuapl dot edu | Date: | Mon, 03 Mar 2003 14:52:09 +0000 |
| Subject: | note 29992 added to function.copy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44781@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.
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://www.php.net/manual/en/function.copy.php
http://master.php.net/manage/user-notes.php?action=edit+29992
http://master.php.net/manage/user-notes.php?action=delete+29992
http://master.php.net/manage/user-notes.php?action=reject+29992