41 Commits

Author SHA1 Message Date
Gina Peter Banyard 5c1ccc6e24 [skip-revcheck] Whitespaces 2024-01-18 12:17:39 +00:00
Ben Morss cefe817294 Document approach to set cookie attributes not known to setcookie() (#3101)
* Modified setcookie() doc to mention that people could use header() to use additional parameters - and created a relevant example in header()

* Split lines so that none are longer than 80 characters.

* Removing the word "you", changing "parameter" to the more commonly used "attribute"

---------

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-01-18 12:14:18 +00:00
Christoph M. Becker 6b053588fb Fix typo (header_list → headers_list) 2023-01-27 16:33:55 +01:00
Christoph M. Becker f32912d04f Fix #73805: header() may not actually set header
We document that header() issues `E_WARNING` on failure, and link to
`headers_list()` which might be used to check success of `header()`.
2021-08-02 17:18:54 +02:00
Christoph M. Becker 590f93a2eb Remove obsolete info about IE 4 and 5.5 2021-08-02 17:07:23 +02:00
Tyson Andre a3a4cd9bea Use a better example for using header() to set status code
This may be the first thing users see when searching how to set the
response code - most will not be familiar with differences between
http/1.0 and 1.1

- HTTP/1.0 does not support connection keepalive
- http_response_code(404) is a shorter way to set a status code with the default
  status message

https://www.php.net/manual/en/function.header.php#92305 also mentions
that the wrong protocol can cause issues with (older?) web servers

Closes GH-709.
2021-06-21 17:36:48 +02:00
Christoph Michael Becker 0c9c2dd669 Generate some standard methodsynopses based on stubs
Cf. <https://github.com/php/doc-en/pull/289>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352191 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 19:26:31 +00:00
Christoph Michael Becker dec1f8445a Remove safe_mode related information
Sorry, translators, for breaking your builds again.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350871 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-13 22:07:26 +00:00
Christoph Michael Becker 53bdffa6b9 Removed some of the PHP5 changelogs
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350645 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 12:32:19 +00:00
Jakub Vrana 158f89672a Rename first parameter to header (bug #75875)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343909 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-26 09:10:55 +00:00
Jakub Vrana b8758b0605 Use entities in initializer
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343899 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:11:34 +00:00
Christoph Michael Becker 852eaaffc4 Add header_remove() to see also section of header()
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343116 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-21 09:26:34 +00:00
Christoph Michael Becker a0d602c951 fixed note about Location header and absolute/relative URIs wrt. RFC 7231
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337474 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-15 11:42:38 +00:00
Christoph Michael Becker 1aa48f7f54 RFC2616 was replaced by multiple RFCs (7230-7237)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337473 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-15 11:30:59 +00:00
Maciej Sobaczewski 11c3ae8a26 Consistency for 'Content-Type' header, as per bug/request #68653
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335374 c90b9560-bf6c-de11-be94-00142212c4b1
2014-12-26 09:26:04 +00:00
Maciej Sobaczewski afc3f34c68 Remove changelogs for PHP 4 - 1st round
Useful changelogs entries remain untouched.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334592 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-23 17:55:23 +00:00
Pieter Hordijk 6cec4c40ff EXIT AFTER ALL THE REDIRECTS!
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330342 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-23 18:56:08 +00:00
Pieter Hordijk 972cca8b71 Think about the children errr rfc's
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330338 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-22 22:30:38 +00:00
Jakub Vrana b123520b43 Link http_response_code()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326385 c90b9560-bf6c-de11-be94-00142212c4b1
2012-06-29 21:22:03 +00:00
Jakub Vrana 84b8fca68f Use <function> for language constructs (now supported by PhD)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325214 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-15 21:45:34 +00:00
Jakub Vrana a9b26c34e4 Display language constructs without parentheses
Side effect of this change is that include, require and return are now properly linked. They weren't because they don't live inside <refentry> so PhD doesn't know about them.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324522 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-25 08:39:30 +00:00
Justin Martin 40aa012461 Removed byte order mark from language-snippets.ent (sorry for including it in this commit).
Moved Header SAPI comment to language snippet.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312832 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-03 01:22:07 +00:00
Justin Martin 78476e3106 Noted that header functions are only available when a supporting SAPI is in use.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312800 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-02 07:40:27 +00:00
Peter Cowburn a912865116 Typos and grammar
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304887 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-25 19:38:17 +00:00
Kalle Sommer Nielsen d380037331 Fixed bug #52207 (header() not fully documented)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304526 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-20 02:54:02 +00:00
TAKAGI Masahiro 55ffd3c43f fix build.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303648 c90b9560-bf6c-de11-be94-00142212c4b1
2010-09-21 21:44:37 +00:00
Mark Skilbeck 257c11c4c5 #52485 FastCGI 404 header
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303643 c90b9560-bf6c-de11-be94-00142212c4b1
2010-09-21 15:49:01 +00:00
Daniel Egeberg 96c9d88bad Converted to utf-8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00
Torben Wilson af4410a7e1 Normalized the sgml-default-dtd-file local-variable line for those
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Jakub Vrana 0efda2548a Undocument PHP 3
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288650 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-24 11:02:03 +00:00
Torben Wilson f3bf8e55e0 Document that a previously-set 201 status code will also affect the
magic handling of 'Location:'.
Addresses bug #49592.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288513 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-21 09:08:26 +00:00
Nilgün Belma Bugüner 0dacad8c3d fixed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283827 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 08:18:07 +00:00
Jakub Vrana 5730e7a2fa Initializers - part 5
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@273648 c90b9560-bf6c-de11-be94-00142212c4b1
2009-01-16 16:14:26 +00:00
Hannes Magnusson 95407835ee Use proper markup for variables
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265352 c90b9560-bf6c-de11-be94-00142212c4b1
2008-08-23 14:08:56 +00:00
Daniel P. Brown 4f2d3a7704 Fixes a minor typo with the date.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@264315 c90b9560-bf6c-de11-be94-00142212c4b1
2008-08-06 16:22:30 +00:00
Hannes Magnusson c030e2adf7 Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00
Mehdi Achour 90fc7ae81c Add ChangeLog
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237878 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-17 02:08:16 +00:00
Mehdi Achour f13c4b5a01 Fix various problems
# and now, time for bed


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237335 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-10 02:06:13 +00:00
Mehdi Achour 295e3a2ce8 ref.network: switch to new doc style
#: why are (old) debugging and accurate error handling facilities located here ?


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237333 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-10 01:57:09 +00:00
Mehdi Achour 6ceb56fff1 WS, prepare for new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237331 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-10 01:55:51 +00:00
Michael Wallner 0871421b19 - yehaa, pecl/http docs -- still lotta fill out though
# previous functions moved as discussed


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@216966 c90b9560-bf6c-de11-be94-00142212c4b1
2006-07-24 11:01:55 +00:00