Check URL for SSL

Facebook

Sometimes I just need to run a quick php test to see what url has been used, specifically to see if it is using SSL.

1
2
3
if ($_SERVER['HTTPS'] == "on") {
    echo "SSL Active";
}

 

No comments

Post a Reply