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

echo 'you are secured';
echo 'you are not secured';

try it