headers_list

(PHP 5, PHP 7) Returns a list of response headers sent (or ready to send) array headers_list ( void ) headers_list() will return a list of headers to be sent to the browser / client. To determine whether or not these headers have been sent yet, use headers_sent(). Returns: Returns a numerically indexed array of headers. Notes: Headers will onl

header

(PHP 4, PHP 5, PHP 7) Send a raw HTTP header void header ( string $string [, bool $replace = true [, int $http_response_code ]] ) header() is used to send a raw HTTP header. See the » HTTP/1.1 specification for more information on HTTP headers. Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with

header_remove

(PHP 5 >= 5.3.0, PHP 7) Remove previously set headers void header_remove ([ string $name ] ) Removes an HTTP header previously set using header(). Parameters: name The header name to be removed. Note: This parameter is case-insensitive. Returns: No value is returned. Notes: Headers wil

header_register_callback

(PHP 5 >= 5.4.0, PHP 7) Call a header function bool header_register_callback ( callable $callback ) Registers a function that will be called when PHP starts sending output. The callback is executed just after PHP prepares all headers to be sent, and before any other output is sent, creating a window to manipulate the outgoing headers before being sent. Parameters: callback

getservbyport

(PHP 4, PHP 5, PHP 7) Get Internet service which corresponds to port and protocol string getservbyport ( int $port, string $protocol ) getservbyport() returns the Internet service associated with port for the specified protocol as per /etc/services. Parameters: port The port number. protocol protocol is either "tcp" or "udp" (in lowerca

getservbyname

(PHP 4, PHP 5, PHP 7) Get port number associated with an Internet service and protocol int getservbyname ( string $service, string $protocol ) getservbyname() returns the Internet port which corresponds to service for the specified protocol as per /etc/services. Parameters: service The Internet service name, as a string. protocol protoc

getprotobynumber

(PHP 4, PHP 5, PHP 7) Get protocol name associated with protocol number string getprotobynumber ( int $number ) getprotobynumber() returns the protocol name associated with protocol number as per /etc/protocols. Parameters: number The protocol number. Returns: Returns the protocol name as a string, or FALSE on failure.

getprotobyname

(PHP 4, PHP 5, PHP 7) Get protocol number associated with protocol name int getprotobyname ( string $name ) getprotobyname() returns the protocol number associated with the protocol name as per /etc/protocols. Parameters: name The protocol name. Returns: Returns the protocol number, or FALSE on failure.

getmxrr

(PHP 4, PHP 5, PHP 7) Get MX records corresponding to a given Internet host name bool getmxrr ( string $hostname, array &$mxhosts [, array &$weight ] ) Searches DNS for MX records corresponding to hostname. Parameters: hostname The Internet host name. mxhosts A list of the MX records found is placed into the array mxhosts.

gethostname

(PHP >= 5.3.0) Gets the host name string gethostname ( void ) gethostname() gets the standard host name for the local machine. Returns: Returns a string with the hostname on success, otherwise FALSE is returned. Examples: A simple gethostname() example <?php echo gethostname(); // may output e.g,: sandie // Or, an