I need a simple function to decide if the it's using https or http. I was thinking - is there a way for php to access the port #? So if it's 443 I know it's secure, and if it's 80 I know it's normal.
What other ways are there of determining this?
I need a simple function to decide if the it's using https or http. I was thinking - is there a way for php to access the port #? So if it's 443 I know it's secure, and if it's 80 I know it's normal.
What other ways are there of determining this?