$name=$_FILES['file']['name'];
$temp=$_FILES['file']['tmp_name'];
move_uploaded_file($temp,"upload1/".$name);
$url="video/upload/$name";
mysql_query("insert into video (name,url) values('$name','$url')");
答案 0 :(得分:2)
你修改了php.ini。
post_max_size = 25M
只需更改你的php.ini(xampp / php / php.ini)文件,它对我有用。
memory_limit = 1000M
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
并且,不要忘记从XAMPP控制面板重启MySQL模块