使用include(';';)插入PHP脚本;导致标头已发送错误

使用include(';';)插入PHP脚本;导致标头已发送错误,php,html,Php,Html,我正在尝试使用以下代码行将表单脚本插入到我的主页index.php中 <?php include('email-system/index.php'); ?> 只有当您在include语句之前对输出进行echoing处理时,才会得到该结果。 在将输出发送给用户之前,请确保包含/加载了所需的内容。只有在include语句之前对输出进行echo处理时,才能获得该内容。 在向用户发送输出之前,确保包含/加载了您需要的内容 Warning: session_start() [functio

我正在尝试使用以下代码行将表单脚本插入到我的主页index.php中

<?php include('email-system/index.php'); ?> 

只有当您在include语句之前对输出进行
echo
ing处理时,才会得到该结果。
在将输出发送给用户之前,请确保包含/加载了所需的内容。

只有在include语句之前对输出进行
echo
处理时,才能获得该内容。 在向用户发送输出之前,确保包含/加载了您需要的内容

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/84/8661784/html/header.php:7) in /home/content/84/8661784/html/email-system/index.php on line 6

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/84/8661784/html/header.php:7) in /home/content/84/8661784/html/email-system/index.php on line 6