1) I want to check if the installed cURL supports OpenSSL, I wrote this, but I think there is a better way to see if cURL has OpenSSL or not rather than using: eregi('OpenSSL', curl_version[ssl_version])? how is the best way?
if (extension_loaded('curl')) {
if (eregi('OpenSSL', curl_version[ssl_version])) {
echo 'You have curl with
OpenSSL';
} else {
echo 'You have curl
without OpenSSL';
}
} else {
echo 'You don't have curl extension';
}
2) and also need to check if the website supports Secure HTTPS. How to check it?