I'm trying to make a request to a website this way :
file_get_contents('http://www.yahoo.com/index.php?var=value');
in the index.php file ( Receiver ) , when I try to echo $_GET['var'] from within the index.php and get the response with file_Get_contents, I get nothing. curl is getting it right , but I just want to know it this way in case curl is not installed
sender:
echo file_get_contents('http://www.yahoo.com/index.php?var=value');
receiver : index.php contains
<?php
echo $_GET['var'];
?>