首頁 >後端開發 >php教程 >php多文件下传 swfupload

php多文件下传 swfupload

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-06-13 10:40:141023瀏覽

php多文件上传 swfupload
http://bbs.php100.com/read.php?tid=25606&page=1

index.php中

file_upload_limit : 10,  //配置上传个数

upload.php中
mysql_connect("localhost","root","");mysql_select_db("upload");$file_name=mktime().$file_name;		//+设置欲上传的文件名	if ([email protected]_uploaded_file($_FILES[$upload_name]["tmp_name"], $save_path.$file_name)) {		HandleError("文件无法保存.");		exit(0);	}else{		mysql_query("insert into pic (id,name) values (NULL,'$file_name')");	//+上传到数据库	}
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn