sfox8
08-12-2007, 08:36 AM
I have the following code:
move_uploaded_file($_FILES["file"]["tmp_name"],
"upload/" . $prefix, $_FILES["file"]["name"]);
echo "Stored in: " . "upload/" . $prefix, $_FILES["file"]["name"];
$prefix is defined as $session->username;
$prefix = $session->username;
and for some reason I keep getting the wrong parameter error no matter what i do. the only way to get rid of the error is to get rid of $prefix, but I need it there to add a prefix to the uploaded file.
Warning: Wrong parameter count for move_uploaded_file() in /home/.interrogator/sfox8/graphytecomics/upload_file.php on line 28
I'm really out of ideas now.
move_uploaded_file($_FILES["file"]["tmp_name"],
"upload/" . $prefix, $_FILES["file"]["name"]);
echo "Stored in: " . "upload/" . $prefix, $_FILES["file"]["name"];
$prefix is defined as $session->username;
$prefix = $session->username;
and for some reason I keep getting the wrong parameter error no matter what i do. the only way to get rid of the error is to get rid of $prefix, but I need it there to add a prefix to the uploaded file.
Warning: Wrong parameter count for move_uploaded_file() in /home/.interrogator/sfox8/graphytecomics/upload_file.php on line 28
I'm really out of ideas now.