最贊回答 / 唐人叔叔_兜兜里有糖
問題已解決:對curl_http不熟悉。curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);?if ($type == 'post'){?? ??? ??? ?curl_setopt($ch, CURLOPT_POST, 1);?? ??? ??? ?curl_setopt($ch, CURLOPT_POSTFIELDS, $postArr);?}這段代碼只能這樣寫 就對了。
2017-07-17