探讨PHP页面跳转几种实现技巧


- <??php?
- //重定向浏览器?
- header("Location:?http://bbs. lampbrother.net");?
- //确保重定向后,后续代码不会被执行?
- exit;
- ?>??
- <?meta?http-equiv="refresh"?
- content="1;url=http:// bbs.lampbrother.net">?
- <??php? ?
- $url?=?"http://bbs.lampbrother.net";??>?
- <?html>? ?
- <?head>? ?
- <?meta?http-equiv="refresh"?content="1; ?
- url=<??php?echo?$url;??>">? ?
- <?/head>? ?
- <?body>? ?
- 页面只停留一秒……? ?
- <?/body>?
- <?/html>??
- <??php ?
- $url?=?"http://bbs.lampbrother.net"; ?
- echo?"<?script?language='javascript'?
- type='text/javascript'>"; ?
- echo?"window.location.href='$url'"; ?
- echo?"<?/script>"; ?
- ?>?











