When I try to post to a php file, some data of JSON file are lost. I have a JSON-file with 1100 entries. On my server, I can only add 333 entries. On another server, I can add 1000 entries. Do I have to change my server configuration?
JSON File has 1100 entries (users)
Jquery:
$.post(
'store.php',
{json:usersJSON},
{contentType: "application/json"},
function() {
alert(data);
});
PHP:
$JSON = $_POST['json'];
echo json_encode($JSON);
on one server, this echoes 333 entries, on the other server, it echoes 1000 entries
json_encodeneed to first usejson_decodeto turn string received into array