php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2308 header() outputs the string _after_ the "Content-Type: text/html"
Submitted: 1999-09-15 16:08 UTC Modified: 1999-09-15 16:36 UTC
From: Dante at altmuehlnet dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 2 OS: Win95 & WinNT Server
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: Dante at altmuehlnet dot de
New email:
PHP Version: OS:

 

 [1999-09-15 16:08 UTC] Dante at altmuehlnet dot de
<?

header( "Location: site.html" );

?>

produces (called on the command line):

---
Content-Type: text/html
Location: site.html

---

But in that way the function is not so useful!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-15 16:36 UTC] eschmid at cvs dot php dot net
No, it is correct behaviour and very useful.

-Egon
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 08:00:02 2026 UTC