update : 2015.11.03
php.shukuma.com검색:
|
http_redirect(PECL pecl_http >= 0.1.0) http_redirect — Issue HTTP redirect 설명
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 설정 http.log.redirect is set and the redirect attempt was successful. 인수
반환값
성공시 예제
Example #1 A http_redirect() example
<?php 위 예제의 출력: 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>. |