note 87989 added to features.file-upload
| From: | damienfromvalex at osu1 dot php dot net | Date: | Mon, 05 Jan 2009 01:53:17 +0000 |
| Subject: | note 87989 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148839@lists.php.net to get a copy of this message | ||
This is simpler method of checking for too much POST data (alternative to that by v3 from
sonic-world.ru).
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST' && empty($_POST) &&
$_SERVER['CONTENT_LENGTH'] > 0) {
throw new Exception(sprintf('The server was unable to handle that much POST data (%s
bytes) due to its current configuration', $_SERVER['CONTENT_LENGTH']));
}
?>
----
Server IP: 117.55.229.1
Probable Submitter: 210.10.53.49
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- https://master.php.net/note/edit/87989
Del: integrated -- https://master.php.net/note/delete/87989/integrated
Del: useless -- https://master.php.net/note/delete/87989/useless
Del: bad code -- https://master.php.net/note/delete/87989/bad+code
Del: spam -- https://master.php.net/note/delete/87989/spam
Del: non-english -- https://master.php.net/note/delete/87989/non-english
Del: in docs -- https://master.php.net/note/delete/87989/in+docs
Del: other reasons-- https://master.php.net/note/delete/87989
Reject -- https://master.php.net/note/reject/87989
Search -- https://master.php.net/manage/user-notes.php