New answers tagged https
Score of 1
1
vote
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
Related Tags
https × 24954ssl × 7476
http × 3672
java × 2382
node.js × 1916
php × 1456
apache × 1373
.htaccess × 1340
javascript × 1339
http-redirect × 1287
android × 1222
ssl-certificate × 1172
nginx × 1097
c# × 1074
security × 1070
python × 914
proxy × 628
amazon-web-services × 625
certificate × 600
curl × 586
iis × 516
wordpress × 507
openssl × 473
express × 472
rest × 472