-3
請得到「SHORTURL」參數 不起作用get_file_contents得到JSON參數
$json_string = file_get_contents('http://ow.ly/api/1.1/url/shorten?apiKey=APICODE&longUrl=' . urlencode($url));
$json = json_decode($json_string, true);
$shorten=$json['shortUrl'];
你想做什麼? –
你可以顯示$ json_string的值嗎? – lwitzel
$ url =「blabla.com」; – user3369359