I got EVERYTHING, but this working. I can't get the move_uploaded_file(); to work.
$ups_path = "ups/files";
$nfile = $_FILES['nfile']['tmp_name'];
$cfile = move_uploaded_file($nfile, $ups_path);
if($cfile){
header ('Location: index.php?give=fileuploaded');
} else {
header ('Location: index.php?give=filenotuploaded');
}
It always returns the error for not moving it.
$ups_pathshould probably be absolute.mysql_real_escape_string()is not useful at this point. It will not remove illegal characters in the file name.mysql_real_escape_stringontmp_name? And probably you are changing the string. Check if this is the case.