I got a little problem regarding the submit of multiple forms:
I'm trying to submit a bigger number of $_POST-variables
, however, my server-side script ends (or just breaks down) after, in total 271 form variables, are submitted.
Trying on localhost, everything works just fine, without any issues. Here, in total 771 post variables are submitted.
I've also done a little research so far, trying to figure what kind of variables I could possibly change in order to configure a bigger data range or something similar.
So here's my server configuration:
max_execution_time 30 30
max_input_nesting_level 64 64
max_input_time 60 60
max_input_vars 1000 1000
memory_limit 256M 256M
post_max_size 8M 8M
localhost configuration:
max_execution_time 30 30
max_file_uploads 20 20
max_input_nesting_level 64 64
max_input_time 60 60
max_input_vars 1000 1000
memory_limit 256M 256M
post_max_size 8M 8M
As you can see, it's the same configuration... I also have the suhosin - extension installed on my server, default configuration. I'm not that familiar with this extension, but using default values should have that impact (i guess :))
Server-PHP Version: 5.3.9
Local: 5.3.17
The problem is quite similar to this one.
I'm trying to solve the problem for weeks now, if you have any kind of ideas.. it would just be great ;)
thanks :)
UPDATE:
if i'm using this approach (thanks):
$pairs = explode("&", file_get_contents("php://input"));
$vars = array();
foreach ($pairs as $pair) {
$nv = explode("=", $pair);
$name = urldecode($nv[0]);
$value = urldecode($nv[1]);
$vars[$name] = $value;
}
print_r($vars);
i see all form variables and content that i'm displaying before. However, accessing the $_POST variables directly by using
isset($_POST['LanguageContentForm']
and saving that to a variable doesn't work.. :/