note 25447 added to function.copy

From: Date: Tue, 24 Sep 2002 12:24:55 +0000
Subject: note 25447 added to function.copy
Groups: php.notes 
Request: Send a blank email to php-notes+get-37181@lists.php.net to get a copy of this message
There seems to be no move() function to move a file. Use a combination of copy() and unlink() instead: function move($source, $destination) { $result1 = copy($source, $destination); $result2 = unlink($source); return($result1 && $result2); } -- http://www.php.net/manual/en/function.copy.php http://master.php.net/manage/user-notes.php?action=edit+25447 http://master.php.net/manage/user-notes.php?action=delete+25447 http://master.php.net/manage/user-notes.php?action=reject+25447

« previous php.notes (#37181) next »