note 51642 deleted from function.header by bjori

From: Date: Mon, 27 Mar 2006 09:51:31 +0000
Subject: note 51642 deleted from function.header by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106728@lists.php.net to get a copy of this message
Note Submitter: nbilalis at yahoo dot com ---- A more general approach for the redirection could be: <?php header("Location: http" . ($_SERVER["HTTPS"]=='on'?"s":"") . "://".$_SERVER['HTTP_HOST'] .dirname($_SERVER['PHP_SELF']) ."/".$relative_url); ?> This way you wont mind if later you wanna use SSL.

« previous php.notes (#106728) next »