close
Skip to main content

New answers tagged

Score of 1

How to detect secure connection (https) using PHP?

Use file_get_contents() to test your server's ability to connect over https. if ( (empty($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS'])=='off') && @file_get_contents('https://...

Top 50 recent answers are included