php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14733 header() not working
Submitted: 2001-12-28 08:31 UTC Modified: 2002-03-07 00:00 UTC
Votes:6
Avg. Score:4.0 ± 1.0
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:2 (40.0%)
From: jukka dot pakkanen at qnet dot fi Assigned:
Status: No Feedback Package: HTTP related
PHP Version: 4.1.0 OS: NT4sp6a
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jukka dot pakkanen at qnet dot fi
New email:
PHP Version: OS:

 

 [2001-12-28 08:31 UTC] jukka dot pakkanen at qnet dot 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).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-30 14:07 UTC] jukka dot pakkanen at qnet dot fi
The webserver is Website Pro 3.
 [2001-12-30 14:22 UTC] daniel@php.net
could you please dump your webserver's output with ethereal? http://www.ethereal.com/

thanks
 [2002-01-08 13:58 UTC] jukka dot pakkanen at qnet dot 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!

 [2002-01-12 11:30 UTC] gary at ukhot dot com
this problem also exists on W2K IIS 5, Using PHP 4.0.6 CGI
 [2002-02-06 00:41 UTC] shiflett@php.net
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
 [2002-03-07 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 09 20:01:29 2024 UTC