|
http_redirectIssue HTTP redirect Description
bool http_redirect
([ string
$url
[, array $params
[, bool $session = false
[, int $status = 0
]]]] )Redirect to the given url.
The supplied To be RFC compliant, "Redirecting to <a>URL</a>." will be displayed, if the client doesn't redirect immediately, and the request method was another one than HEAD. A log entry will be written to the redirect log, if the INI setting http.log.redirect is set and the redirect attempt was successful. Parameters
Return Values
Returns Examples
Example #1 A http_redirect example
<?php The above example will output: HTTP/1.1 301 Moved Permanently X-Powered-By: PHP/5.2.2 Content-Type: text/html Location: http://www.example.com/curdir/relpath?name=value&PHPSESSID=abc Redirecting to <a href="http://www.example.com/curdir/relpath?name=value&PHPSESSID=abc">http://www.example.com/curdir/relpath?name=value&PHPSESSID=abc</a>. |