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

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

WBOY
Release: 2016-06-13 12:18:00
Original
840 people have browsed it

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

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