php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #1504 New function to set the http status
Submitted: 1999-06-07 21:09 UTC Modified: 2002-02-09 22:52 UTC
From: lauritz2 at hotmail dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 OS: Linux
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: lauritz2 at hotmail dot com
New email:
PHP Version: OS:

 

 [1999-06-07 21:09 UTC] lauritz2 at hotmail dot com
When having a line like this "ErrorDocument 404 /404.php3", in your apache httpd.conf, the first line of the HTTP respone would be something like "HTTP/1.1 404 Object Not Found". It would be nice to be able to change this to fx. "HTTP/1.1 200 OK".
Right now php only makes it possible to add new lines after the first line of the header, and doing a header("status: 200 OK"); will not work on all clients.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 13:22 UTC] jimw@php.net
refiling against 4.0 (perhaps it could be addressed in sapi layer since header('status: 404 not found') may not work with all web servers).
 [2001-07-22 12:32 UTC] andy@php.net
It seems like this bug needs to be closed.
 [2001-07-22 19:44 UTC] andy@php.net
re-opening
 [2002-02-09 22:52 UTC] jimw@php.net
the header() function does the right thing with header("HTTP/1.0 404 Not found") style headers in php 4.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 01:01:28 2025 UTC