Reputation: 25
I have a PHP web application that stores some data into array var called $excel. That array contains around 500 - 600 rows (arrays).
When I try to pass that array as jSON using jQuery ajax like this:
$.ajax({
method: "POST",
url: "ajax/excel.php",
data: { "title": "Test", "data": <?php echo json_encode($excel); ?> },
dataType: "json"
}).done(function( data ) {
console.log(data);
}).fail(function(jqXHR, textStatus, errorThrown) {
console.log(errorThrown+': '+textStatus);
});
I get only 199 rows in ajax/excel.php $_POST['data'] var. I tried on different server and there I got 249 rows, so there must be some server config parametar that I just can't figure it out.
What i receive in ajax/excel.php as $_POST['data'] is
[
["1","2283","Name 1","Address 1","2714"],
["2","2200","Name 2","Address 2","2273"],
["3","1594","Name 3","Address 3","1718"],
...,
["199","3053","Name 199","Address 199","1709"]
]
Testing server is on Windows: Apache 2.4.18 (Win32) and PHP 5.6.26
Other server is on Linux: Apache 2.4.10 (Debian) and 5.6.29-0
Upvotes: 2
Views: 1974
Reputation: 1018
What "Hussy Board" said you can change in php.ini the max_input_vars, the default limit is 1000. Also checkout the post_max_size
Upvotes: 2