brotherhood_of_LAN - 2:51 am on Jun 28, 2013 (gmt 0)
I'd test the script to see what is actually being sent to the server in question.
Try changing curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); to TRUE though , see if that helps.
It's handy to have curl on the command line sometimes to quickly check these things.
curl -v https://www.paypal.com
works fine. Paypal also serves the "Strict-Transport-Security:" header that insists on HTTPS communication.