Bug #14733 Updated: header() not working

From: Date: Wed, 06 Feb 2002 05:41:47 +0000
Subject: Bug #14733 Updated: header() not working
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79311@lists.php.net to get a copy of this message
ID: 14733 Updated by: shiflett@php.net -Reported By: jukka.pakkanen@qnet.fi +Reported By: shiflett@php.net -Status: Open +Status: Feedback Bug Type: HTTP related Operating System: NT4sp6a PHP Version: 4.1.0 New Comment: jukka.pakkanen@qnet.fi - It sounds like your problem was solved. :) gary@ukhot.com - If you are still experiencing this problem, please try this test for me (in case you don't have ethereal as Daniel suggested). This will help me determine where the problem lies, since there are many pieces of software involved. 1) Create a simple sample script that has this problem. If your problem is identical to the original submitter's, it sounds like you just need one line of code with a call to the header function and use an HTTP Location header as his example shows. 2) telnet to your web site on port 80 (If your web site is http://www.blah.com/ then telnet www.blah.com 80) 3) Manually type in an HTTP GET request. Here is an example (this is the smallest request you can get away with): GET /path/to/script.php HTTP/1.1 Host: blah.com 4) Post the exact output you receive back to this list. Thanks for helping! Chris Shiflett Previous Comments: ------------------------------------------------------------------------ [2002-01-12 11:30:08] gary@ukhot.com this problem also exists on W2K IIS 5, Using PHP 4.0.6 CGI ------------------------------------------------------------------------ [2002-01-08 13:58:11] jukka.pakkanen@qnet.fi the problem was O'Reilly Website Pro v3.0. After upgrading to Deerfield Website Pro 3.1.11, the header() function now works fine! ------------------------------------------------------------------------ [2001-12-30 14:22:51] daniel@php.net could you please dump your webserver's output with ethereal? http://www.ethereal.com/ thanks ------------------------------------------------------------------------ [2001-12-30 14:07:01] jukka.pakkanen@qnet.fi The webserver is Website Pro 3. ------------------------------------------------------------------------ [2001-12-28 08:31:45] jukka.pakkanen@qnet.fi header() function doesn't redirect the browser to new location. Example test.php file: <? header("Location: http://www.qnet.fi"); ?> Nothing happens when opening this file with IE 5.5sp2, IE6, etc. There are no extra spaces, LF's, CR's. PHP.INI has "output_buffering = on". NT4sp6a, PHP4.1.0 (ISAPI). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14733&edit=1

« previous php.dev (#79311) next »