Category: PHP and Mysql

Detect SSL mode or when page is in secure mode

if ($_SERVER == ‘on’) {
// secure mode
}

if ($_SERVER  !=  ’on’) {
// NOT secure mode
}

Tags: PHP and Mysql
Posted in PHP and Mysql | Leave a comment