2 http_redirect() permanent
5 extension_loaded('http') or die('ext/http not available');
6 strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
10 http_redirect('redirect', null, false, true);
14 Content-type: text/html
16 Location: http://localhost/redirect
18 Redirecting to <a href="http://localhost/redirect">http://localhost/redirect</a>.