日本語:Function.redirect

redirect -- ユーザを他のページへ転送する.

説明
void redirect ( string $url [, bool $return [, bool $disable_cd_check ]] )

例 #1 viewtopic.php
if (!$topic_data) {   // If post_id was submitted, we try at least to display the topic as a last resort... if ($post_id && $forum_id && $topic_id) {       redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id")); }

trigger_error('NO_TOPIC'); }

例 #2 viewforum.php
// We redirect to the url. The third parameter indicates that external redirects are allowed. redirect($forum_data['forum_link'], false, true); exit;

例 #3 ボットを転送
// is the user logged in? if (!$user->data['is_registered']) {   if ($user->data['is_bot']) {       // the user is a bot, send them back to home plate... redirect(append_sid("{$phpbb_root_path}index.$phpEx")); }   // the user is not logged in, give them a chance to login here... login_box('', 'LOGIN'); }

参照

 * meta_refresh
 * login_box

Function.redirect