3

I am using following ajax request to send data to my backend API (written in PHP).

$.ajax({
        url: '',
        type: 'POST',
        data:({
            type: 'save',
            data: DATA
        }),
        ........

here, the "DATA" is a 2D array which has 700 entries. An example of data is shown below,

(
    [0] => Array
        (
            [0] => 1
            [1] => Mac1
            ....
            .... 
            [26] => Single
        )

    [1] => Array
        (
            [0] => 2
            [1] => Mac2
            ....
            .... 
            [26] => Single
        )

    [2] => Array
        (
            [0] => 3
            [1] => Mac3
            ....
            .... 
            [26] => Single
        )
   .............

Problem is, when I upload data in the local environment (checked with php 5.6 and php 7.1 both) it works fine (all 700 entries are uploaded), But when I use a server (which has PHP 5.6) it only uploads up to 37th entry (out of 700 entries only 37 entries are getting uploaded ).

I tried the same on a server which has PHP 7.1 and it worked fine. I have two questions

  1. What can be the reason for not working in PHP 5.6 server?
  2. How can I fix this?

Thank you.

Chana
  • 56
  • 8

0 Answers0