예제 #1
0
파일: apache.php 프로젝트: superwmh/swoole
function http_redirect($url, $mode = 301)
{
    Swoole_client::redirect($url, $mode);
}
예제 #2
0
파일: Filter.php 프로젝트: superwmh/swoole
 static function raise($text = false)
 {
     if (self::$error_url) {
         Swoole_client::redirect(self::$error_url);
     }
     if ($text) {
         exit($text);
     } else {
         exit('Web input param error!');
     }
 }