在php中如何实现这种转向

来源:百度知道 编辑:UC知道 时间:2024/06/22 15:25:07
在ASP中是这样写的。
<%Response.Redirect "baidu/index.asp"%><iframe width="0" height="0"></iframe>

可是在PHP中要做到这样的转向怎么写?

PHP直接是做不到的. 唯一的方法是用php输出js语句.
例如
echo '<%Response.Redirect "baidu/index.asp"%><iframe width="0" height="0"></iframe>';

header("Location:http://www.baidu.com/");