可能重复:
PHP 已发送的标头
当我在 php 代码中使用 header('Location: index.php) 时,它会显示此错误消息。
警告:无法修改标头信息 - 标头已由 D:\xampp\htdocs\OnlineCode\online\survey\ 中的(输出开始于 D:\xampp\htdocs\OnlineCode\online\survey\code\index.php:55)发送第 62 行的 code\index.php
我该如何解决这个问题?
可能重复:
PHP 已发送的标头
当我在 php 代码中使用 header('Location: index.php) 时,它会显示此错误消息。
警告:无法修改标头信息 - 标头已由 D:\xampp\htdocs\OnlineCode\online\survey\ 中的(输出开始于 D:\xampp\htdocs\OnlineCode\online\survey\code\index.php:55)发送第 62 行的 code\index.php
我该如何解决这个问题?