https or http?
hi,
how can i use php to workout if a user is using https ? basically i want to make certain that my users get redirected from a non secure site to a secure one any ideas? |
maybe you could try something like this (untested):
Code:
if (preg_match("/^https/i", $_SERVER['SERVER_PROTOCOL'])) { |
i take it then looking at that code ' preg_match ' is the equlivilent of grep at the command line?
|
|
All times are GMT -5. The time now is 03:34 AM. |