Remove SSL Verify on Windows #12
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@ class GooglePlacesClient
|
|||
|
||||
curl_setopt_array($curl, $options);
|
||||
|
||||
// Add certificate for Windows
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||
}
|
||||
|
||||
$response = curl_exec($curl);
|
||||
|
||||
if ($error = curl_error($curl))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue