Php ile post json nesne (http post)?

0 Cevap php

Ben HTTP POST isteği ile json nesnesi göndermek ve yanıtları işlemek gerekir.

json nesne:

{
   "my_json" : "12345" 
}

Ben böyle somethinh yazdı, ama bu işe yaramaz.

$url = "http://localhost/my_json.json";

$json_Data = file_get_contents($url,0,null,null);

print_r($json_Data);

Ve hiçbir şey yazmıyor.

Yardım edin lütfen.

0 Cevap