Html-when a large amount of data is submitted using textarea, the $ _ POST array cannot be read in the php background.

Source: Internet
Author: User
The first is a page form with only one input and textarea. When the input data in textarea is relatively small (for example, section 1000), I can use the php $ _ POST array to read data in the background, however, if the input data in textarea is large (such as 0.1 million bytes), I use php in the background... the first is a page form with only one input and textarea. When the input data in textarea is relatively small (for example, section 1000), I can use the php $ _ POST array to read data in the background, however, if the input data in textarea is large (for example, 0.1 million bytes), the $ _ POST array in php can only read the content in the input, but the content in textarea cannot be read.

Then I checked on the internet, saying that the server (I used the javaser integrated environment) configuration problem, need to modify php. in ini, The post_max_size parameter is changed to 20 mb and is passed through phpinfo. php printing check has indeed changed, but still cannot be obtained.

Hope Daniel can help, TKS.

Reply content:

The first is a page form with only one input and textarea. When the input data in textarea is relatively small (for example, section 1000), I can use the php $ _ POST array to read data in the background, however, if the input data in textarea is large (for example, 0.1 million bytes), the $ _ POST array in php can only read the content in the input, but the content in textarea cannot be read.

Then I checked on the internet, saying that the server (I used the javaser integrated environment) configuration problem, need to modify php. in ini, The post_max_size parameter is changed to 20 mb and is passed through phpinfo. php printing check has indeed changed, but still cannot be obtained.

Hope Daniel can help, TKS.

Modify three parameters in php:
Upload_max_filesize
Post_max_size
Memory_limit

Modify one nginx parameter:
Client_max_body_size 35 m; # Set the size of the uploaded file on the client to 35 M.

This is not just a change here. It seems that the maximum upload value of Apache/Nginx needs to be changed.

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.