Is there a way to access data that was sent using the HTTP PUT method, except for $putdata = fopen("php://input", "r"); ?
I have never worked with the PUT and DELETE methods, and $putdata = fopen("php://input", "r"); seems a bit sketchy. Will it work everywhere, do you need a specific /php.ini server configuration?
I know that I can get the request method from $_SERVER['REQUEST_METHOD'];
But will the data be in $_REQUEST , if so, what does php://input mean? And how do I access data that was sent via DELETE ?
source share