Home >Backend Development >PHP Tutorial >PHP怎么在PHP代码全部执行完毕之后跳转?

PHP怎么在PHP代码全部执行完毕之后跳转?

WBOY
WBOYOriginal
2016-06-23 14:09:16773browse

这条语句能保证在PHP代码全部执行完毕之后跳转到新页面么:
echo "<script>location.href='t.php';</script>";


回复讨论(解决方案)

你将它放在最底下就是了

用header

js 如果对方禁用了 那么你将无法跳转..

用header

js 如果对方禁用了 那么你将无法跳转..
嗯嗯,是的,不过最好header下面记得加个exit()

用header

js 如果对方禁用了 那么你将无法跳转..
header还要加延时么?不加flush就是全部执行完之后再发送么?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn