php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #531 Header() not working as expected
Submitted: 1998-07-09 15:32 UTC Modified: 1998-07-10 13:15 UTC
From: jo2y at pitt dot edu Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Final Release OS: Linux 2.0.32
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: jo2y at pitt dot edu
New email:
PHP Version: OS:

 

 [1998-07-09 15:32 UTC] jo2y at pitt dot edu
If I have a script that includes any script, then header() does not work. I've tested this with foo.php3 being empty
with the same results. I don't see any mention of this in the documentation and foo.php3 does not do any output.

<?php include("foo.php3");
            Header("WWW-authenticate: basic realm=\"Test\"");
?>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-10 13:15 UTC] rasmus
This was due to newlines in the included file.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 19:00:01 2026 UTC