Reputation: 19524
(I'm trying to debug why php is not accepting posts from remote sources, even though allow-access is set in .htaccess)
The input stream appears to be null though parameters are sent...
In an empty file:
<?php echo file_get_contents("php://input");
in file.php
returns null when variables such as file.php?foo=bar
are appended to the .php file...
Should this not return null, as variables/parameters are being sent?
Upvotes: 0
Views: 173
Reputation: 393
I believe file_get_contents("php://input");
will work only with POST requests.
See php://input
For the case of query parameters, ?foo=bar
would be available via $_GET
Upvotes: 2