I have been searching all over the internet on how to get programaticaly google plus one button count. Finally i found this article Here is the Php Script mentioned in the
Probably a problem with curl not accepting the CA of the server. You can find out for sure with:
$curl_results = curl_exec ($ch);
echo curl_error($ch);
If it is indeed a problem with the untrusted CA, you have two options. The insecure and easy way would be to add one more option to curl:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
This disables the check. The second option (better and a bit more complicated) would be to go to https://clients6.google.com and export the CA certificate and feed it to curl like so:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/CAcerts/exported.crt");