Request-URI Too Large怎么解决
RequestURI Too Large Request URI Too Large
nbsp;HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">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
回复讨论(解决方案)
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
是什么意思呀?
我的tText字段类型是longtext的呀
直接在http://localhost/phpMyAdmin/index.php管理数据库的时候也成功把几万字的内容保存到这个字段里了
但就是用自己做的代码上传上去不行
你好像没说清楚
如果是php已获得$tText,不能写入数据库,就该按老徐说的设置数据库
如果是客户端传数据,php不能获得$tText,视乎方法,get只有2k左右,post理论无限制,但实际受服务器的设置限制,修改服务器设置,或把post改为传送文件
你好像没说清楚
如果是php已获得$tText,不能写入数据库,就该按老徐说的设置数据库
如果是客户端传数据,php不能获得$tText,视乎方法,get只有2k左右,post理论无限制,但实际受服务器的设置限制,修改服务器设置,或把post改为传送文件
php是已经得$tText了的
用$tTextLen=strlen($tText);获得$tText的长度,
$tTextLen也是一个几万大的数字
你说的修改服务器设置怎么操作?怎么改?在哪个地方改?
TEXT < pow(2, 16) = 64KMEDIUMTEXT < pow(2, 24) = 16MLONGTEXT < pow(2, 32) = 4096M
你能不能把你要传达给我的意思说明白详细清楚一些呢?
你就写成这个样子,
相信一般的普通人应该是看不懂的,
你这样的回复并没有起到真正解决问题的目的呀。
如果传入的数据已可获得,那么就不会有 Request-URI Too Large 错误了
此时需检查相应的字段类型是否是能容纳内容的类型
你的问题本身就没说清楚
从哪往哪传、怎么传、中间如何处理,问题里面一句php代码页没有,就给一个结果,谁回答都是靠猜的
看你的问题这么省略,老徐认为你是有足够知识了,所以简单指出问题所在,但看来还是白搭
你这态度不像是恳求指导,倒像是领导下命令似的,算了,不说了……
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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.
