php - Unable to send more than 1000 variables through url -
i had search form , result stored in array , passed through url page wish displayed.now when below 1000 items searched works otherwise lead internal server error. there other methods url encryption can solve internal error? please me avoid internal server error code follows
$cfinalarray = array_intersect($clarray1, $clarray2, $clarray3, $clarray4, $clarray5, $clarray6, $clarray7, $clarray8, $clarray9, $clarray10, $clarray12, $clarray13, $clarray14, $clarray15, $clarray16, $clarray17, $clarray18, $clarray19, $clarray20, $clarray22, $clarray23, $clarray24, $clarray25, $clarray26); if (count($cfinalarray) > 0) { $arrayc = array_values($cfinalarray); arsort($arrayc); $ab = http_build_query($arrayc); header("http/1.1 301 moved permanently"); header("location: http://example.com/a/b?$ab"); } else { header("http/1.1 301 moved permanently"); header("location: http://example.com/a/b?search=noresult"); }
result this:http://example.com/a/b?2=1120&1=1077&0=1046
you're looking ini setting 'max_input_vars', defaults 1000. http://php.net/manual/en/info.configuration.php
Comments
Post a Comment