看来是的。
我使用的脚本是
<?
//PHP自带函数
Header("Location: http://www.sohu.com");
?>
显示警告:
Warning: Cannot modify header information - headers already sent by (output started at ...... in ........ on line 10
我使用的脚本是
<?
//PHP自带函数
Header("Location: http://www.sohu.com");
?>
显示警告:
Warning: Cannot modify header information - headers already sent by (output started at ...... in ........ on line 10
如果你没有,那你的HEADER操作也一定要在代码产生输出之前使用,而且尽量放在最前面。否则就会像上面提示的一样,警告你头信息在第10行已经发送,你不能发送两次头信息。
也不能这样
<html>
<head>
.......
<?php
header(...)
?>
把Header()放到第一行去就好了,和服务器没有关系。