2013-05-13 72 views

回答

1
$curl = curl_init(); 
curl_setopt ($curl, CURLOPT_URL, "$URL"); 
$ANSWER=curl_exec ($curl); 
curl_close ($curl); 
1

試試這個:

$output=json_decode(file_get_contents("http://www.domainname.com/employee=name"),true);

+0

非常感謝你對於答案,我得到了這個錯誤信息:'未能打開流:第2行沒有這樣的文件或目錄' – mongotop 2013-05-13 18:04:44

+0

請將您的網址替換爲'http:// www.domainname.com/employee = name'。 – 2013-05-13 18:06:27

+0

我用我的網址替換了這個網址, – mongotop 2013-05-13 18:08:17