How does Request-URITooLarge solve RequestURI Too Large 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
A problem occurred when uploading 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); // execute the ADD operation
When the value is not passed, use the code alert (tText. length) to know that tText has a length of more than 30 thousand.
Because $ tText is too big,
How can I modify the server settings to store large content in mysql?
This is related to the Internet.
This is in php. ini.
; Valid range 0-2147483647. Default = 4096.
; Mssql. textlimit = 4096
; Valid range 0-2147483647. Default = 4096.
; Mssql. textsize = 4096
Reply to discussion (solution)
TEXT < pow(2, 16) = 64KMEDIUMTEXT < pow(2, 24) = 16MLONGTEXT < pow(2, 32) = 4096M
TEXT < pow(2, 16) = 64KMEDIUMTEXT < pow(2, 24) = 16MLONGTEXT < pow(2, 32) = 4096M
What does that mean?
My tText field type is longtext.
When you manage the database through http: // localhost/phpMyAdmin/index. php, tens of thousands of words are saved to this field.
But it cannot be uploaded using your own code.
You didn't seem to make it clear.
If $ tText is obtained by php and cannot be written to the database, set the database according to the old saying.
If the client transmits data, php cannot get $ tText. depending on the method, the get is only about 2 k, and the post theory is not limited, but it is actually limited by the server settings. modify the server settings, or change post to transfer a file.
You didn't seem to make it clear.
If $ tText is obtained by php and cannot be written to the database, set the database according to the old saying.
If the client transmits data, php cannot get $ tText. depending on the method, the get is only about 2 k, and the post theory is not limited, but it is actually limited by the server settings. modify the server settings, or change post to transfer a file.
Php has $ tText.
Use $ tTextLen = strlen ($ tText); to get the length of $ tText,
$ TTextLen is also a tens of thousands of numbers
How do you modify server settings? How to change it? Where can I change it?
TEXT < pow(2, 16) = 64KMEDIUMTEXT < pow(2, 24) = 16MLONGTEXT < pow(2, 32) = 4096M
Can you explain the meaning you want to convey to me in detail?
You write it like this,
I believe that ordinary people cannot understand,
Your reply does not really solve the problem.
If the input data is available, there will be no Request-URI Too Large error.
In this case, check whether the field type can accommodate the content type.
Your question is not clear.
Where to go, how to pass, and how to deal with the problem. if there is no php code page in the question, a result is provided. anyone who answers the question depends on guesses.
According to the omission of your question, Xu thinks that you have enough knowledge, so he points out the problem briefly, but it seems that you are still confused.
Your attitude is not like asking for guidance. it is like a command under the leadership. forget it ......
Http://stackoverflow.com/questions/9877744/request-uri-too-large
Http://stackoverflow.com/questions/2891574/how-do-i-resolve-a-http-414-request-uri-too-long-error