large formular data problem with PHP and thttpd
| From: | Ralf Geschke | Date: | Sun, 18 Nov 2001 18:25:34 +0000 |
| Subject: | large formular data problem with PHP and thttpd | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-70824@lists.php.net to get a copy of this message | ||
Hi !
I'm using PHP with the thttpd web server on some SuSE Linux
machines (tested on a Sun Ultra 5, the primary web sever,
and a x86 notebook as developing system).
Now I run into trouble by submitting large formular data.
When the size of submitted data grows, nothing will return,
either the $HTTP_POST_VARS is empty, or the script dies.
It happened whithin a larger application, but to test this behaviour,
I've written a small script (ftest.php):
<html><head><title>form test</title></head><body>
<?php
print "Server API: " . php_sapi_name() . "<p>";
if ($HTTP_POST_VARS["submit"] == "Send")
{
print "Send-Button pressed!<p>";
$formdata = $HTTP_POST_VARS["data"];
print "Length of form data: " . strlen($formdata);
print "<br>Your input:<p>";
print htmlentities($formdata);
}
?>
<p>
<form action="ftest.php" method="post">
<textarea rows="10" cols="50" wrap="virtual"
name="data">
<?php print htmlentities($formdata);
?>
</textarea>
<br>
<input type="submit" name="submit" value="Send">
</form>
</body>
You can view it online on
http://www.bttr.org/test/ftest.php (thttpd)
and with an Apache server on
http://www.bttr.org:8080/test/ftest.php
With Apache it works great, you can submit very large formular
data with thousands of characters.
But with thttpd only about 2000 characters (sometimes more,
sometimes less) will be submitted successfully.
Before today, I used PHP 4.0.6 and thttpd-2.21b. Now I tried
the CVS version from this afternoon (PHP 4.2.0-dev), but nothing
changed.
Is this a known behaviour?
Please tell me if you need further info.
Best Regards,
Ralf
--
: www : http://www.bttr.org : mail: ralf@bttr.org
: Eine Site rund um MySQL : http://www.bttr.org/mysql/
: Int. PHP Conference - Galleries : http://www.bttr.org/phpconf/
: Privacy now! My Public Key : http://www.bttr.org/geschke.asc