void header(string $str)
header() sends a raw HTTP header or Status-Line in the response message. Each HTTP header field consists of a field-name followed by a colon(":") and a field-value. The Status-Line is the first line of a Response message consisting of the protocol version followed by a numeric status code and its associated textual phrase.
※ available F/W version : all
None
<?php
// This script inform to the web browser that the page move to other page temporarily.
header("HTTP/1.1 302 FOUND");
header("Location: http://www.phpoc.com");
echo "Redirecting to http://www.phpoc.com";
?>
None
header() must be called before any actual output is sent, This function is almost the same, but it doesn’t support $replace and $http_response_code in the PHP. Refer to RFC2616 for more information about the HTTP response header.