php-doc-en/reference/network/functions
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
..
checkdnsrr.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
closelog.xml Fix issues in Network directory 2021-06-10 12:30:36 +03:00
dns-check-record.xml
dns-get-mx.xml
dns-get-record.xml Remove PHP 5, 7 references (#565) 2021-05-12 14:49:16 +03:00
fsockopen.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
gethostbyaddr.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
gethostbyname.xml
gethostbynamel.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
gethostname.xml Fix issues in Network directory 2021-06-10 12:30:36 +03:00
getmxrr.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
getprotobyname.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
getprotobynumber.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
getservbyname.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
getservbyport.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
header-register-callback.xml
header-remove.xml
header.xml Use a better example for using header() to set status code 2021-06-21 17:36:48 +02:00
headers-list.xml Fix issues in Network directory 2021-06-10 12:30:36 +03:00
headers-sent.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
http-response-code.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
inet-ntop.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
inet-pton.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
ip2long.xml Remove PHP 5, 7 references (#565) 2021-05-12 14:49:16 +03:00
long2ip.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
openlog.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
pfsockopen.xml Fix function name 2021-06-11 10:26:42 +03:00
setcookie.xml Fix issues in Network directory 2021-06-10 12:30:36 +03:00
setrawcookie.xml Mimic 'Alternative signature' prompt for setcookie in other functions which set cookies 2020-12-14 23:19:07 +00:00
socket-get-status.xml
socket-set-blocking.xml
socket-set-timeout.xml
syslog.xml Document the changes to syslog.filter 2021-05-10 18:19:06 +02:00