I send a JSON array
from jscript to PHP via jQuery $.post()
. It is a table of numbers of 3-4 digits and its size is 174 x 15 (rows x cols). When checking the XHR Post. I can see all values like
pdata[0][] dates
pdata[0][] Fund B1
pdata[0][] Fund B2
pdata[0][] Fund B3
pdata[0][] Fund B4
pdata[0][] Fund B5
pdata[0][] Fund B6
pdata[0][] Fund B7
pdata[0][] Fund B8
pdata[0][] Fund B9
pdata[0][] Fund B10
pdata[0][] Fund B11
pdata[0][] Fund b12
pdata[0][] Fund B13
pdata[100][] 4/30/2005
pdata[100][] -3.16%
pdata[100][] -3.54%
pdata[100][] -0.52%
Note that the 1st index is sorted alphabetically, not numerically. Then I process that array in PHP as
$pdata = $_POST['pdata'];
print_r($pdata);
The problem is that about half of data is missing and $pdata
has only about 72 elements (arrays) instead of 174. I was thinking that it is related to the PHP post_max_size
and increased it to 30Mb
, but it didn't help.
What else could truncate an array?
Thanks.