$_SERVER['HTTPS']



if you want to know if you are using a secured url using port 443 within your site, you can use $_SERVER['HTTPS'], if you are using it will display on

echo $_SERVER['HTTPS'];

this way you can check if your page is using https or http

hope that helps

here is an example of how you can use it

<?php
if($_SERVER['HTTPS']){
echo 'you are secured';
}else{
echo 'you are not secured';
}
?>

try it