QAds
Apple iPod shuffle 1 GB Gumus
$35.00
Toshiba Satellite T115D-S1125 LED TruBrite Laptop
$360.00
Apple iPod shuffle 1 GB Yesil
$35.00
Apple iPod nano 8 GB Yesil
$88.21
:: HOME PHP How can I understand that URL is https or http?
 
How can I understand that URL is https or http?

I want understand that url is https or http. how can I do that?

You can use $_SERVER['SERVER_PORT'] to understand it is http or https. if it is http, you will get 80 as a value and if it is https, you will get 443.