#21004 [Opn->Fbk]: Header Location Fails

From: Date: Sat, 14 Dec 2002 10:11:19 +0000
Subject: #21004 [Opn->Fbk]: Header Location Fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27685@lists.php.net to get a copy of this message
ID: 21004 Updated by: sniper@php.net Reported By: tom@minnesota.com -Status: Open +Status: Feedback -Bug Type: URL related +Bug Type: HTTP related Operating System: NetBSD/Alpha (64bit) - 1.6 PHP Version: 4CVS-2002-12-13 (stable) New Comment: Does it redirect though? What does 'lynx -dump -head <url to the index.php>' output? Maybe IE6 and Mozilla 1.2b are more strict about the path? Since your example adds one extra / in the url.. Previous Comments: ------------------------------------------------------------------------ [2002-12-13 19:12:45] tom@minnesota.com RE: Bug #19754 shouldn't be closed because CVS-2002-12-13 still exihibit this problem. index.php: <?php $location = "Location: http://".$_SERVER['HTTP_HOST']; $location.= dirname($_SERVER['PHP_SELF'])."/"."index2.php"; header($location); ?> --- index2.php: <?php echo "<p>You have been redirected</p>"; ?> --- calling index.php should redir to index2.php and echo out: You have been redirected Instead both Mozzila 1.2b and IE 6.x show a blank page. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21004&edit=1

« previous php.bugs (#27685) next »