RE: [PHP] Upload moves the file doesn't copy it..
| From: | Boget, Chris | Date: | Wed, 14 Feb 2001 19:11:48 +0000 |
| Subject: | RE: [PHP] Upload moves the file doesn't copy it.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39717@lists.php.net to get a copy of this message | ||
> I have finally learned to upload file using php.
> But the problem is that When I upload a file, it
> disappears from it's place and moves to the location I
> have told it to go to. It's more like a cut & paste
> rather then copy and paste...
> if (copy($userfile, "c:\\upload.txt"))
This is copying the file.
> unlink($userfile);
This is deleting the file, making it *seem* as if the file
was moved.
Chris