Request-uri Too large How to solve

Source: Internet
Author: User
Tags mssql
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.