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
 [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 04:00:01 2026 UTC