我需要上传大文件(高达190MB) 这里是服务器的详细信息为限:使用php上传大文件?
memory_limit = 50M
post_max_size = 192M
file_uploads = On
upload_max_filesize = 192M
max_execution_time = 1800 sec
max_input_time = 1800 sec
这里是我的代码:
$query="update tbl_Cards set CardName='$cardname',Description='$Description'";
if($cardvideo)
{
if($_FILES["cardvideo"]["type"] == "video/quicktime"||$_FILES["cardvideo"]["type"] == "video/mov"||$_FILES["cardvideo"]["type"] == "video/mp4"||$_FILES["cardvideo"]["type"] == "video/mpv"||$_FILES["cardvideo"]["type"] == "video/3gp")
{
if($_FILES["cardvideo"]["size"]<=10485760)
{
$cardvideo=$date."card.mp4";
$tmppath3="services/video/".$cardvideo;
if(move_uploaded_file($_FILES['cardvideo']['tmp_name'],$tmppath3))
{
$thumb=$date.".jpg";
$thumbDirectory="services/VideoCapturePic/";
exec("convert \"{$tmppath3}[0]\" -colorspace RGB -geometry 200 $thumbDirectory$thumb");
$query.=",Video='$cardvideo',CapturePic='$thumb'";
}
$query.="where CardId='$card'";
$result=mysql_query($query);
if($result)
{
} else
{
echo mysql_error();
}
但是当我上传10个MB的文件,他们上传但是当我尝试上传大文件时(20或30或40或50),我得到以下回应:
Column count doesn't match value count at row
我在做什么错?
你做了什么错误一些大文件上传? – 2012-01-12 04:59:17
请参阅我的问题 – 2012-01-12 05:09:47
列计数与行数不匹配,这是我的错误消息 – 2012-01-12 05:10:34