No description
Find a file
hakre eecf090806
Improve headers_list() example (#1007)
Two & 1/2 things with the PHP example code:

1. `X-` prefix header names June 2012 [1], [2].

2. PHP prepends the `default_charset` [3] on any `text/*` media type in
   Content-Type header, unless the `charset` is with the `header()` call,
   like in the example.

3. PHP version 5.1.3 (May 2006) -> 8.0.11, the X-Powered-By header [4]
   removed (only distracting w/ the example).

PHP version in use to generate the output: 8.0.11.

[1]: https://datatracker.ietf.org/doc/html/rfc6648
[2]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
[3]: https://www.php.net/manual/en/ini.core.php#ini.default-charset
[4]: https://www.php.net/manual/en/ini.core.php#ini.expose-php

Co-authored-by: Tiffany <tiffany.k.taylor@gmail.com>
2021-10-12 14:00:01 +01:00
.github/workflows CI: upload .manual.xml 2021-08-06 21:56:18 +02:00
appendices [PHP 8.1] Use an Pspell\[Dictionary|Config] instance instead of a resource (#976) 2021-10-07 01:00:37 +09:00
chapters hyphenate "object-oriented" 2021-08-08 18:48:47 +01:00
chmonly Fix other typos outside of php module docs 2020-04-27 06:59:43 +00:00
faq Remove legacy Windows docs (#661) 2021-06-13 23:20:58 +01:00
features Fix typo 2021-09-23 19:38:33 +02:00
install fixed wrong package name. also, replaced apt-get command. 2021-09-23 11:45:22 +09:00
language Types are not hints in PHP. (#1003) 2021-10-09 14:43:01 +01:00
reference Improve headers_list() example (#1007) 2021-10-12 14:00:01 +01:00
security Fix typo on session security page (#833) 2021-07-31 19:53:40 +03:00
.editorconfig Add editorconfig file 2020-08-18 14:04:18 +00:00
.gitignore Add .gitignore to ignore generated entities.*.xml files 2020-12-30 18:26:10 +01:00
bookinfo.xml Wrap Copyright page title in <info> tag to use h1 header 2015-04-08 20:41:29 +00:00
contributors.ent Upgraded the Editor :) 2015-05-27 00:16:49 +00:00
contributors.xml Credit Yoshinari Takaoka 2021-01-24 17:53:37 +01:00
extensions.ent Convert entity files to UTF-8 to please strict standards check in OE 2013-09-09 14:32:44 +00:00
language-defs.ent Show inherited constants 2018-09-20 15:10:00 +00:00
language-snippets.ent Generate methodsynopses from stubs for ext/intl (IntlCalendar) (#996) 2021-10-11 15:02:12 +02:00
make_chm_index.html Fix doc-level encoding declaration in make_chm_index.html 2013-09-18 12:26:38 +00:00
preface.xml Capitalisation fix in preface 2014-09-01 16:39:55 +00:00
README ws 2017-06-27 05:15:25 +00:00

----------------------------------------------------------------------
README
----------------------------------------------------------------------

Please refer to the README file within the doc-base/ directory. Your
directory structure is probably like:

  phpdoc/en            (DocBook files for the English language)
  phpdoc/doc-base      (Tools and resources used for all languages)