Please answer this simple SPAM challenge: two plus six?
(Example: nine)

The Note You're Voting On

damien from valex
10 years ago
This is simpler method of checking for too much POST data (alternative to that by v3 from

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']));

<< Back to user notes page

To Top