|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 07:00:01 2025 UTC |
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).the header() function does the right thing with header("HTTP/1.0 404 Not found") style headers in php 4.