Detect HTTPS mode in PHP

Category: X-Cart Snippets
Added:
Enter Price $
SKU SKU821
Quantity

Detect HTTPS mode in PHP

<?php 
if($_SERVER['HTTPS']) {
 echo 'You are secured';
}
else {
 echo 'You are not secured';
}
?>
The website uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy.
More Information