Request-uri Too large How to solve
<title>414 Request-uri Too Large</title>
Request-uri Too Large
The requested URL ' s length exceeds the capacity
Limit for the this server.
Request Failed:uri too long
apache/1.3.29 Server at localhost Port 80
There was a problem uploading the data to MySQL.
$SQL = "INSERT into". $tTableName. "Set".
"Ttitle= ' title". Date ("H:i:s"). "',".
"Ttext= ' content". Date ("H:i:s"). "',".
"Ttitle=". $tTitle. "',".
"Ttext=". $tText. "',".
"Tuser= '". $_session["Zhanghu"]. "',".
"Tbkid=". $BKId. "',".
"Tdatetime = '". Date ("Y-m-d h:i:s"). "'";
mysql_query ($SQL);//Perform add operation
Use code alert (ttext.length) to know that Ttext has more than 30,000 lengths when not passed
Because the $ttext is too big,
How to modify server settings to save large content to MySQL?
The internet says it's about this.
This is what's in 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
Share to:
------Solution--------------------
TEXT < POW (2, +) = 64K
Mediumtext < POW (2) = 16M
Longtext < POW (2, +) = 4096M