# PHP, AJAX: large data being truncated on nginx

**URL:** <https://www.ruby-forum.com/t/php-ajax-large-data-being-truncated-on-nginx/236561>\
**Category:** NGINX\
**Created:** [September 16, 2013, 3:19pm UTC](https://www.ruby-forum.com/t/php-ajax-large-data-being-truncated-on-nginx/236561 "2013-09-16T15:19:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 16, 2013, 3:19pm UTC](https://www.ruby-forum.com/t/php-ajax-large-data-being-truncated-on-nginx/236561/1 "2013-09-16T15:19:15Z")

</div>

Hello,

My PHP installation is configured to accept 8M of post data and use to  
128M  
of physical memory.

I have also configured following in nginx conf

client\_body\_buffer\_size 100k;  
client\_header\_buffer\_size 100k;  
client\_max\_body\_size 16m;  
large\_client\_header\_buffers 200 100k;

When i try to post large data, some data from the last last textboxes is  
truncated  
There are over 200 textboxes on the page.  
And i am getting the data in post only for 185 text boxes.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![eric\_eric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@eric\_eric](https://www.ruby-forum.com/u/eric_eric)\
**Post date:** [September 16, 2013, 3:30pm UTC](https://www.ruby-forum.com/t/php-ajax-large-data-being-truncated-on-nginx/236561/2 "2013-09-16T15:30:21Z")

</div>

Hello!

On Mon, Sep 16, 2013 at 06:48:48PM +0530, eric eric wrote:

> large\_client\_header\_buffers 200 100k;
> 
> When i try to post large data, some data from the last last textboxes is  
> truncated  
> There are over 200 textboxes on the page.  
> And i am getting the data in post only for 185 text boxes.

I would suppose it’s a php configuration problem, see here:

[http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars](http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars)

–  
Maxim D.  
[http://nginx.org/en/donation.html](http://nginx.org/en/donation.html)
