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

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

WBOY
Release: 2016-06-23 13:36:49
Original
961 people have browsed it

<?php /* header('Location : http://segmentfault.com/');这个方法,是在响应头里面,发一个302重定向。而响应头当然要比响应主体要提前输出。 */echo "<html>
Copy after login
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template