note 21938 added to function.header

From: Date: Fri, 31 May 2002 15:21:22 +0000
Subject: note 21938 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-31289@lists.php.net to get a copy of this message
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. -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+21938 http://master.php.net/manage/user-notes.php?action=delete+21938 http://master.php.net/manage/user-notes.php?action=reject+21938

« previous php.notes (#31289) next »