我試圖從http://api.stackoverflow.com/1.1/search?tagged=php獲取數據。無法從Stack Exchange API獲取數據
我使用這個代碼從API獲取數據:
$url = "http://api.stackoverflow.com/1.1/search?tagged=php";
$json = file_get_contents($url);
$json_data = json_decode($json, true);
print_r($json);
但它顯示我什麼。我也用curl來獲取數據,但它也沒有顯示任何內容。爲什麼它沒有向我展示任何東西,我該如何解決這個問題?
當你點擊鏈接您能得到什麼? – snollygolly