PHP 4.0 Bug #7375 Updated: In PHP versions later than 4.0.1pl2, IE reports a 404 error for script

From: Date: Thu, 07 Dec 2000 16:56:54 +0000
Subject: PHP 4.0 Bug #7375 Updated: 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-40456@lists.php.net to get a copy of this message
ID: 7375 Updated by: sniper Reported By: webmaster@jwdx.com Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: Reopen, if this still happens when using latest snapshot from http://snaps.php.net/ --Jani Previous Comments: --------------------------------------------------------------------------- [2000-10-21 18:56:51] lyric@php.net The 404 comes from your webserver, not your php. Change the script so it just displays $goto, you might be surprised what it contains (perhaps two of "http://"?) --------------------------------------------------------------------------- [2000-10-20 16:57:36] webmaster@jwdx.com $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? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7375

« previous php.dev (#40456) next »