algoliasearch-client-php
algoliasearch-client-php copied to clipboard
Certificate Read
I was getting a CURL error saying curl couldn't find the cert. It has something to do with how you require files. I changed this to help.
curl_setopt($this->curlHandle, CURLOPT_CAINFO, './resources/ca-bundle.crt');
to
curl_setopt($this->curlHandle, CURLOPT_CAINFO, DIR . '/resources/ca-bundle.crt');
DIR = "underscore underscore DIR underscore underscore" Github won't let me write it.
P.S. This is for PHP 5.3+
Thanks for the report and the solution. I have just added the fix.