QAds
Coby MP305-4G MP3 Player
$16.05
Apple iPad 32gb Wi-Fi
$548.97
Nokia N8 Touchscreen Phone Beyaz - gps navigation, Voice Navigation, 12 MP Camera
$449.99
Motorola A1200 MING Smartphone
$112.49
:: 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.
NEW ANSWER
 
Your E-Mail Address
»
Your e-mail will never be shown!  
   
 
Answer
»
Please type your ANSWER and please use [CODE] tag for your codes!  
  Add CODE Quote BOLD ITALIC Underline Align Left Align Center Align Right Add Line  
   
 
Human Check
»
Enter human check code below!  
   
 
       
 
 
mc sinema sudoku