I need a way to figure out if SSL is used or not with a particular connection. I looked on the PHP website with the traditional ways of going the the $_SERVER constants, but none of them seem to work for me.
I've tried $_SERVER['HTTPS'] which doesn't show up on php_info
I've tried SERVER_PORT' which shows port 80 even when connecting via ssl.
I'm not sure what to do at this point, since it doesn't show any difference when using http or https.
BTW, this is for a redirect script so I can make sure people connect via SSL.
PM me if you want a link to the php_info file.
I've tried $_SERVER['HTTPS'] which doesn't show up on php_info
I've tried SERVER_PORT' which shows port 80 even when connecting via ssl.
I'm not sure what to do at this point, since it doesn't show any difference when using http or https.
BTW, this is for a redirect script so I can make sure people connect via SSL.
PM me if you want a link to the php_info file.