Back

🚀 PHP 8.4 introduces `request_parse_body`!

This new function parses HTTP request bodies for methods beyond POST such as PUT, DELETE, and PATCH. 🙌

try {
// Override INI settings for request parsing
$options = [
'max_input_vars' => 5000,
'max_file_uploads' => 20
];

[$data, $files] = request_parse_body($options);
} catch (RequestParseBodyException $e) {
echo "Error: " . $e->getMessage();
}


for more: wiki.php.net/rfc/rfc1867-non-post

212

  • No matching results...
  • Searching...

/ 1000