curl_exec will return false when the request failed. Adjust your function to this : $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, ...
確定! 回上一頁