4 ms·
Ironically your example would be a pretty great case for someone like me, who occasionally use PHP for fun but don't really use-use it. $data = file_get_co
by wingerlang 4y ago
Ironically your example would be a pretty great case for someone like me, who occasionally use PHP for fun but don't really use-use it.
$data = file_get_contents(filename: 'php://input');
I would definitely have to google what this means, like why is it opening a file and how is 'php://input' a file?
"We're getting the raw request body"
Is actually a good explanation.
So, someone new to a project, and maybe unfamiliar with the tech, might find this useful.