Is there a way to detect if you're on https... page?
I tried:
if(ereg("https",$REQUEST_URI))
but it doesn't seem to work
.
oh $REQUEST_URI doesnt return the full path of the page.
reg kevin
$_SERVER['HTTPS'] will return "on" if using ssl.
So...
if ($_SERVER['HTTPS'] == "on") { echo("Mmmm, yummy SSL goodness"); } else { echo("No SSL action here"); } echo("Thanks for playing");
Right on!