Home  >  Article  >  Backend Development  >  php页面跳转

php页面跳转

WBOY
WBOYOriginal
2016-06-06 20:25:211053browse

test.php
<?php
echo "a";
header("location: b.php");
?>

b.php
echo "b";
?>

php页面跳转

php页面跳转

为什么在页面上没有任何内容输出?

回复内容:

test.php
<?php
echo "a";
header("location: b.php");
?>

b.php
echo "b";
?>

php页面跳转

php页面跳转

为什么在页面上没有任何内容输出?

<?php

你少了一个 ?

php页面跳转

竟然没有报错,果然是关闭了display error。

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