Php file_get_content fonksiyonunu kullanarak parametreleri gönder

0 Cevap

Dear all,
How i send parameters using php file_get_content function.

$id='123';
$name='blah';
$response=file_get_contents('http://localhost/abc/abc.php?id=$id&name=$name');  
echo $response;

Ben page.Here does not working. Ayrıca ben chk? Id = "$ id" & name = "$ name" value.It 'ler de geçen değerini abc.php için $ id ve name değerini göndermek gerekir çalışmıyor. Ama straite parametre works. Say-

$response=file_get_contents('http://localhost/abc/abc.php?id=123&name=blah');

Şimdi bana abc.php için 2 parametre $ id $ ve ismini göndermek için yardımcı olabilir onların herhangi bir Kind kalbidir?

Thanks
riad

0 Cevap