kopia lustrzana https://github.com/magicbug/Cloudlog
check for curl errors
rodzic
f5b8b101a1
commit
50ea6a61d9
|
@ -71,6 +71,11 @@ class Clublog extends CI_Controller {
|
|||
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
|
||||
echo curl_exec($request);
|
||||
|
||||
if(curl_errno($ch)) {
|
||||
echo 'Curl error: '.curl_error($ch);
|
||||
}
|
||||
curl_close ($ch);
|
||||
|
||||
$results = strval($request);
|
||||
|
||||
$check = strpos($results, 'accepted');
|
||||
|
|
Ładowanie…
Reference in New Issue