Home  >  Article  >  Backend Development  >  PHP的header函数头部输出的问题解析

PHP的header函数头部输出的问题解析

WBOY
WBOYOriginal
2016-06-23 13:36:49939browse

<?php /* header('Location : http://segmentfault.com/');这个方法,是在响应头里面,发一个302重定向。而响应头当然要比响应主体要提前输出。 */echo "<html>
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