79545062

Date: 2025-03-30 19:28:12
Score: 1.5
Natty:
Report link

In php 8.4, this can now be achieved with the request_parse_body function

https://www.php.net/manual/en/function.request-parse-body.php

<?php

if($_SERVER['REQUEST_METHOD'] === 'PUT' || $_SERVER['REQUEST_METHOD'] === 'PATCH') {
    [$_POST, $_FILES] = request_parse_body();
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: NobodyImportant