Request-URI Too Large怎麼解決
414 Request-URI Too Large
Request-URI Too Large
The requested URL's length exceeds the capacity
limit for this server.
request failed: URI too long
Apache/1.3.29 Server at localhost Port 80
在把資料內容上傳到mysql裡時出現了問題。
$Sql="INSERT INTO ". $tTableName ." set ".
//"tTitle='標題" . date("H:i:s") . "',".
//"tText='內容" . date("H:i:s") . "',".
"tTitle='".$tTitle."'," .
"tText='".$tText."'," .
"tUser='".$_SESSION["ZhangHu"]."'," .
"tBKId='".$BKId."'," .
"tDateTime ='". date("Y-m-d H:i:s") ."'";
mysql_query($Sql);//執行添加操作
在未傳值時用代碼 alert(tText.length) 知道tText有三萬多的長度
因為$tText太大了,
要怎麼修改伺服器設定才可以存大內容到mysql裡呢?
網上說和這個有關
這是在php.ini裡的內容
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textlimit = 4096
; Valid range 0 - 2147483647. Default = 4096.
;mssql.textsize = 4096 RequestURI?Too?Large Request URI Too Large
分享到:
------解決方案--------------------
TEXT < pow(2, 16) = 64K
MEDIUMTEXT < pow(2, 24) = 16M
LONGTEXT < pow(2, 32) = 4096M