Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8673097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:22:11+00:00 2026-06-12T19:22:11+00:00

I have a multidimensional array, which consists of 426 smaller arrays, which also comprise

  • 0

I have a multidimensional array, which consists of 426 smaller arrays, which also comprise of 4 attributes.. Below is an example of one of 426 arrays…

    array( //Main array
          0 => array( //1 of 426 arrays
               'name' => 'Danny', 
               'email' => 'your@email.com', 
               'picture_url' => 'http://www.website.com', 
                'score' => 89
          ),
    )

I’m posting this array with jquery’s ajax functions to a php file, which adds them to a database… My problem is that the array seems to be chopped off when it’s posted to the php file. Only about half the array actually reaches the php file…

This has led me to believe that there may be a file size limit when posting over ajax. However, the size of my array seems to be relatively small..

I’m running my application on WAMP..

Can anyone shed some light what’s possibly happening?

UPDATE:

I’m posting my array like so:

$.ajax({
  type: "POST",
  url: "invite_friends.php",
  data: {
    theID: me.id,
    friends: multidimensional_array //This is the array <---
  },
  success: function(data, textStatus, jqXHR) {
    return console.log(data);
  },
  error: function(jqXHR, textStatus, errorThrown) {
    return alert("Error: Oops, there has been a problem");
  }
});

And I retrieve my array (in invite_friends.php) like so..

if($_POST['friends']) {
    $friends = $_POST['friends'];   
} else {
    $friends = FALSE;
} 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:22:13+00:00Added an answer on June 12, 2026 at 7:22 pm

    You need to open your php.ini file and set (or create) this line:

    max_input_vars = 1000000

    max_input_vars has a default value of 1000, which will cut off an array at 1000 total elements. Just change it to a really high number (in my case, I needed to set it to one million).

    From the PHP Manual:

    How many input variables may be accepted (limit is applied to $_GET,
    $_POST and $_COOKIE superglobal separately). Use of this directive
    mitigates the possibility of denial of service attacks which use hash
    collisions. If there are more input variables than specified by this
    directive, an E_WARNING is issued, and further input variables are
    truncated from the request. This limit applies only to each nesting
    level of a multi-dimensional input array.

    Keep in mind: As the manual says, this default limit was put in place to prevent denial of service attacks.

    Hope this helps even though this is an old question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multidimensional array or arrays which I also use in my configuration
I have a multi-dimensional array, which basically consists of one sub-array for each year.
I have a function which sorts data in a multidimensional array, as shown below:
I have a multidimensional array of arrays (source below), where my keys and values
Im looking for an example of multidimensional arrays. I have an array of thumbtails
I have a multidimensional array which I am looping through using a foreach loop.
All, I have the following array and function, which will create a multidimensional array
I have a multidimensional array, I am interested in getting all the elements (one
I have a multidimensional array, and I would have multiple arrays within it. Some
I have a multidimensional-array which looks like this: $array = ( [0] => array

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.