I would like to know how I could write something in "php://input".
Actually I would like to know if I can use this stream like a superglobal.
Example with $_POST
file1: $_POST['param'] = "test";
file2: $param = $_POST['param'];
What I want
file1: ?????????????
file2: $param = file_get_contents('php://input');
Do I need to throw a POST request to from file1 to file2?
Thanks for read me :)
Have a nice day
Michaël S.
php://input is a read-only stream that allows you to read raw data from the request body. (PHP docs)
Maybe, you will find unix-sockets, or shared memory useful?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With