Computing.Net > Forums > Web Development > webserver limit qty of POST values

webserver limit qty of POST values

Reply to Message Icon

Original Message
Name: Don Arnett
Date: July 1, 2008 at 08:44:21 Pacific
Subject: webserver limit qty of POST values
OS: linux
CPU/Ram: na
Model/Manufacturer: na
Comment:

Does anyone know of an Apache or PHP config setting that controls the quantity of POST variables allowed to be submitted?

I have a simple data input webpage that has been working fine for months. The webpage consists of 19 lines of 12 text input fields, plus two hidden fields. The user fills in the input fields and presses submit.

Yesterday we moved to a new webserver and the page stopped working. I figured out that all of the input/hidden fields were not being sent to the PHP script specified by the form action attribute.

It's submitting only the first 184 input/hidden fields. I verified this by printing all values in the $_POST variable in the PHP script.

I've provided a temporary fix by changing the number of lines from 19 to 15, which puts the number of POST fields under the limit.

I'm pretty sure that the limit is based on the number of POST fields, rather than the quantity of data because the page doesn't work even if the fields in 18 of the 19 rows are empty.

New WebServer:
Linux: Suse Enterprise 10
Apache: 2.2.3
PHP: 5.1.2

Old Webserver:
Linux: Suse Enterprise 9
Apache: 2.0.59
PHP: 4.3.4


Report Offensive Message For Removal


Response Number 1
Name: quacked
Date: July 1, 2008 at 18:17:42 Pacific
Subject: webserver limit qty of POST values
Reply: (edit)

Does anyone know of an Apache or PHP config setting that controls the quantity of POST variables allowed to be submitted?

Php 4 to Php 5

Php.ini file, configuration , Where the memory size, execution time is too Low ? perhaps,,,

184 input/hidden fields ,, But how much memory is being used in those fields ?

I looked through my php, and Apache conf, files and the only limiting, for the quantity of POST fields< is the limit of POST , Memory,,, Perhaps increasing the amount will allow for the larger amount of input fields ,,,

What was the Old php settings, for Memory ?

[Pcre]
;PCRE library backtracking limit.
;pcre.backtrack_limit=100000

;PCRE library recursion limit.
;Please note that if you set this value to a high number you may consume all
;the available process stack and eventually crash PHP (due to reaching the
;stack size limit imposed by the Operating System).
;pcre.recursion_limit=100000

; Maximum size of POST data that PHP will accept.
post_max_size = 512M

"""" Just copied and pasted a few of the settings of my PHP.ini file,,, not sure if there may have been a modified .ini file in your configuration,,, Or if Your Newer Apache, settings may be the problem,,,, In either case, Perhaps ,,, someone more Knowledgeable will intercede,""""

MSI 845e mb 1 gb ram and a p4 2.4n running fedora 7 xp ,win 2000 advanced server and win 98 SE alot to learn and I know so little !!!!


Report Offensive Follow Up For Removal

Response Number 2
Name: quacked
Date: July 1, 2008 at 18:41:54 Pacific
Subject: webserver limit qty of POST values
Reply: (edit)

http://gallery.menalto.com/node/62939

is a post describing how to increase the memory limit size in PHP ,,,

MSI 845e mb 1 gb ram and a p4 2.4n running fedora 7 xp ,win 2000 advanced server and win 98 SE alot to learn and I know so little !!!!


Report Offensive Follow Up For Removal

Response Number 3
Name: quacked
Date: July 1, 2008 at 18:45:53 Pacific
Subject: webserver limit qty of POST values
Reply: (edit)

PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?

You are exhausting the available memory that PHP has access to. In php.ini there is a config variable named memory_limit that by default is set to 8MB. Edit php.ini and increase it to a larger value (restart Apache afterwards). If you don't have access to php.ini, you can add this line to your .htaccess file in your gallery2 folder. Usually, unless you are the owner of the server, you don't have access to change php.ini. If there is no .htaccess file yet, you can create one (it's just a text file with the name '.htaccess').

php_value memory_limit [new memory limit]

To change it to 24 MB, write:

php_value memory_limit 24M

If the .htaccess method does not work or if you get an internal server error after adding this line, remove the line from the .htaccess again. You can also try to change the memory_limit by adding the following line right after '<?php ' in install/index.php and in main.php:

ini_set("memory_limit","32M");

If there's no "memory_limit" parameter in your phpinfo page, then all PHP/Webserver processes are limited by the per process max memory limit. You'll have to ask an administrator to change the limit in this case. On linux/unix, you can check the limit with the following command in the shell:

ulimit -a

Or with PHP with a script check.php

<?php print system('ulimit -a'); ?>

MSI 845e mb 1 gb ram and a p4 2.4n running fedora 7 xp ,win 2000 advanced server and win 98 SE alot to learn and I know so little !!!!


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: webserver limit qty of POST values

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge