graham23s
08-30-2007, 11:28 PM
Hi Guys,
this tiny bit of code doesnt seem to be moving the files to the destination folder:
foreach ($_FILES['nzb']['name'] as $key => $value) {
$target = "nzbs/";
$target = $target_path.basename($value);
move_uploaded_file($_FILES['nzb']['tmp_name'][$key], $target);
}
when i print_r(); all the variables are displayed in the array fine, have i missed a bit of code at all?
thanks guys
Graham
this tiny bit of code doesnt seem to be moving the files to the destination folder:
foreach ($_FILES['nzb']['name'] as $key => $value) {
$target = "nzbs/";
$target = $target_path.basename($value);
move_uploaded_file($_FILES['nzb']['tmp_name'][$key], $target);
}
when i print_r(); all the variables are displayed in the array fine, have i missed a bit of code at all?
thanks guys
Graham