HTTP::redirect

HTTP::redirect -- redirects the client

Synopsis

require_once 'HTTP.php';

void HTTP::redirect (string url)

Описание

This function redirects the client. This is done by issuing a Location: header and exiting.

Пример

This will redirect the client to /foo.php. The method will take care of adding the right hostname as required by RFC 2616.

Параметр

Заметка

Эта функция может быть вызвана статически.

Avoid sending any kind of data to the client before calling redirect().

The location header requires an absolute URL. If not given, redirect() tries to build one from $url. So if the redirect fails, set the absolute URL manually as argument.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ