upload file function
时间:2006-05-31 来源:liyongquan
/* written by LiYongQuan */
set_time_limit($TimeLimit);
$FileName = AddSlashes($UploadPath).$FName;
if(($UploadFile =="none") || ($UploadFile == ""))
{echo("You didn't choice any file!");
return(1);
}
if(($FileName =="none") || ($FileName == ""))
{echo("You didn't supply destination file!");
return(2);
}
$FileName = AddSlashes($UploadPath).$FName;
if($UploadFile_size
unlink($UploadFile);
set_time_limit(30);
}
?>
set_time_limit($TimeLimit);
$FileName = AddSlashes($UploadPath).$FName;
if(($UploadFile =="none") || ($UploadFile == ""))
{echo("You didn't choice any file!");
return(1);
}
if(($FileName =="none") || ($FileName == ""))
{echo("You didn't supply destination file!");
return(2);
}
$FileName = AddSlashes($UploadPath).$FName;
if($UploadFile_size
unlink($UploadFile);
set_time_limit(30);
}
?>
相关阅读 更多 +