How can I read the contents of stdin (up until EOF) into a string in PHP?
ended up figuring it out myself:
$input_data = file_get_contents("php://stdin");
2.1m questions
2.1m answers
60 comments
57.0k users