note 39432 added to function.headers-sent
| From: | antti at haapakangas dot net | Date: | Wed, 28 Jan 2004 17:39:04 +0000 |
| Subject: | note 39432 added to function.headers-sent | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64319@lists.php.net to get a copy of this message | ||
Re: php at fufachew dot com
That's a nice example how to implement Location header in a correct way (using absoluteURI).
95% of the scripts I have seen just use relativeURI which is wrong. Some browsers, for example lynx,
actually notify user about incomplete Location headers. However it might be safer to use
$_SERVER['SERVER_NAME'] instead of $_SERVER['HTTP_HOST']. Host header is a
HTTP/1.1 feature and you can not count on that if you want to be interoperable with HTTP/1.0
implementations.
----
Manual Page -- http://www.php.net/manual/en/function.headers-sent.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39432
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39432&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39432&report=yes
Search -- http://master.php.net/manage/user-notes.php