note 25447 deleted from function.copy by alindeman
| From: | alindeman@php.net | Date: | Fri, 09 May 2003 22:16:50 +0000 |
| Subject: | note 25447 deleted from function.copy by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-47794@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);
}