Alex Rivera | Logout

How can I read the contents of stdin (up until EOF) into a string in PHP?

Asked 2009-05-05T05:40:54.660
46

How can I read the contents of stdin (up until EOF) into a string in PHP?

Edit
Report

1 Answer

76

ended up figuring it out myself:

$input_data = file_get_contents("php://stdin");
answered 2009-05-05T05:58:08.360

Your Answer