PHP文件上传(命名)
'.\Uploads\logo\1.jpg'
1 $names1 = time().mt_rand(100,999).'.png'; 2 $path='.\Uploads\logo\\'.$names1; 3 $r=@move_uploaded_file($_FILES['material_name']['tmp_name'],$path);
$_FILES["Filedata"]["name"] = md5(microtime(1) . rand()) . $type;
if (IS_POST) {
//生成文件名
$names1 = time().mt_rand(100,99999).'.swf';
//文件生成路径
$path='\Uploads\logos\\'.$names1;
//上传文件的函数
$r=move_uploaded_file($_FILES["material_name"]['tmp_name'],".$path");