PHP 4.0 Bug #7375: In PHP versions later than 4.0.1pl2, IE reports a 404 error for script
| From: | webmaster at jwdx dot com | Date: | Fri, 20 Oct 2000 20:57:36 +0000 |
| Subject: | PHP 4.0 Bug #7375: In PHP versions later than 4.0.1pl2, IE reports a 404 error for script | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35686@lists.php.net to get a copy of this message | ||
From: webmaster@jwdx.com
Operating system: RedHat 6.1
PHP version: 4.0.3
PHP Bug Type: Scripting Engine problem
Bug description: In PHP versions later than 4.0.1pl2, IE reports a 404 error for script
$url = getenv("REQUEST_URI");
$dest is taken from a mysql database
$goto = "http://" . "$dest" . "$url";
<html><head>
</head>
<frameset rows="100%,*" frameborder="no" border=0><frame
name="webmapper" src="<? echo("$goto"); ?>"
noresize></frameset>
</html>
This should be enough to get the idea across. Basically it is a redirection script. I have 404
errors pointed to this file, so when a person goes to a domain pointed to me that has a REQUEST_URI,
that get added to the end of $dest so it takes them to that file in whatever directory they are
pointing to. When i use headers("Location: $dest" . "$url"); it works fine. In
Netscape, it works fine, but in IE it displays a 404 error. When I changed back to 4.0.1pl2, it
worked fine. What could have changed to make this happen? Is there anything I can do to prevent
this problem?
--
Edit Bug report at: http://bugs.php.net/?id=7375&edit=1