file_get_contents böylece $ _GET ile hiçbir şey alma, url sorgu dizeleri göndermek olmaz

0 Cevap

Ben bir web sitesi bu şekilde bir istek yapmak için çalışıyorum:

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

gönderen:

echo file_get_contents('http://www.yahoo.com/index.php?var=value');

receiver : index.php contains

<?php
echo $_GET['var'];
?>

0 Cevap