|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-13 19:12 UTC] tom at minnesota dot 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
No it doesn't work now. If you click on the URL I typed earlier from Minnesota.com, it's running PHP-4.2.2 not PHP-4.3-CVS. Per my other message, redir works fine in 4.2.2 but NOT in 4.3-cvs. I only switch to 4.3-cvs to do the tests, after which, I switch back to 4.2.2. header("Location: ....") *DOES NOT* work in 4.3-cvs.I have the same problem. My scripts worked fine on php 4.2.2, but since I the 4.3.0 release, it doesn't work anymore. I use win2000, iis5. The header('Location: blah') returns a header with http code 302 -> moved, but the url I try to redirect to isn't in the header.