To get the contents of the body of an HTTP request from a PUT request in PHP, you cannot use a superglobal like $_POST or $_GET or $_REQUEST , because ...
There is no super global PHP file for PUT or DELETE request data
Instead, you need to manually load the request body from STDIN or use the php://input stream.
$_put = file_get_contents('php://input');
Superglobal $_GET will still populate if a PUT or DELETE request is made. If you need to access these values, you can do it in the usual way. I am not familiar with how jquery sends variables with a DELETE request, so if $_GET not populated, you can instead try manually parsing the variable $_SERVER['QUERY_STRING'] or use the custom action parameter suggested by @ShankarSangoli to host legacy browsers that cannot use javascript to send a DELETE request in the first place.
rdlowrey
source share