RE: [PHP] Finding out whether request was done via http or https

From: Date: Fri, 23 May 2003 13:52:16 +0000
Subject: RE: [PHP] Finding out whether request was done via http or https
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148771@lists.php.net to get a copy of this message
if ($_SERVER["HTTPS"] != "on") { $newurl = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; header("location: $newurl"); die; }

« previous php.general (#148771) next »