Re: problems using copy() and rename()
- From: "peter" <submit@xxxxxxxxxxxxxxxx>
- Date: Sat, 21 Oct 2006 14:41:28 +0100
"mantrid" <ian.dandav@xxxxxxxxxx> wrote in message
news:%7o_g.143$76.75@xxxxxxxxxxxxxxxxxxxxxxx
Im trying to move a file but am having luck
my code is below. The temp and target paths are valid as they echo
correctly. but I cant get the copy() function to work, or the rename()
function
$target_path = $targetdir . basename($uploadedfile["name"][$x]);
$temp_path = $tempdir. basename($uploadedfile["name"][$x]);
echo "Target - ".$target_path." Temp - ".$temp_path."<br>";
copy($temp_path, $target_path);
has any one experienced this problem?
are you receiving any error if so what is it? Also if it is as it looks and
is a file that has been uploaded then why not use the move_uploaded_file()
function.
.
- Follow-Ups:
- Re: problems using copy() and rename()
- From: mantrid
- Re: problems using copy() and rename()
- References:
- problems using copy() and rename()
- From: mantrid
- problems using copy() and rename()
- Prev by Date: Re: barcode
- Next by Date: [ann] Introducing FlatPress
- Previous by thread: problems using copy() and rename()
- Next by thread: Re: problems using copy() and rename()
- Index(es):
Relevant Pages
|