发布:thatboy 来源:net 【大 中 小】代码如下: 12 | function redirect( $url , $delay = 0, $js = false, $jsWrapped = true, $return = false) |
16 | if (headers_sent() || $delay > 0) { |
20 | <meta http-equiv= "refresh" content= "{$delay};URL={$url}" /> |
26 | header( "Location: {$url}" ); |
33 | $out .= '<script language="JavaScript" type="text/javascript">' ; |
35 | $url = rawurlencode( $url ); |
37 | $out .= "window.setTimeOut(function () { document.location='{$url}'; }, {$delay});" ; |
39 | $out .= "document.location='{$url}';" ; |
>>> 您可能感兴趣的文章: PHP 页面跳转的多种方法总结 页面跳转代码(php、asp、js多版本) PHP Header 页面跳转注意事项 php实现页面跳转的别样方法 php实现页面跳转的几种方法 header跳转和include包含问题实例分析
|