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

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

WBOY
WBOYOriginal
2016-06-13 12:18:00805browse

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

<?php /* header(&#39;Location : http://segmentfault.com/&#39;);这个方法,是在响应头里面,发一个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