note 21938 deleted from function.header by sniper

From: Date: Sun, 07 Sep 2003 21:29:31 +0000
Subject: note 21938 deleted from function.header by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55605@lists.php.net to get a copy of this message
Note Submitter: chrisshaffer@bellsouth.net ---- Not really sure why they made thier relative path/redirect example the way they did... It works, but under a Win32 machine, it puts some extra slashes in the redirected path. Hears what they had: header("Location: http://". $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']). "/".$relative_url); Here's what I got to work: header("Location: http://".$_SERVER['HTTP_HOST'].$PHP_SELF); The $PHP_SELF variable gives its entire relative path.

« previous php.notes (#55605) next »