Reputation: 2749
This is my my index.php file
<?php
print_r($_POST);
exit;
?>
I'm posting to my website using postman in chrome, but nothing gets there. I get back only
Array
(
)
I know that postman works because I used it when I had free webhosting. Now I asked a friend for a little space on his website, but for some reason the post data is not printed.How can I solve this ?
Here is a photo with what is happening: http://6pix.net/images/16687663370157764163.png .
Upvotes: 2
Views: 1082
Reputation: 11310
1. Check if your web server supports php
You can check this by running a .php
file with some output statements such as echo
2. Check if you are pointing the page properly
You shall check this by outputting some content
3. Try with full path
Some servers needs to get full path i.e., it won't support point the index.html
or index.php
if the directory path was given
Additional Note :
If the above issues doesn't helps then you might check with the .htaccess
, blocking of REST Calls etc.,.
Upvotes: 2
Reputation: 13
If you really (like shown within your screenshot) do
print_r($_REQUEST);
please check your php.ini for your
request_order
variables_order
If "post" is not within that order, $_REQUEST will not have "post" content inside.
Upvotes: 0