Понимание ограничителя кеша | заголовки уже отправили php-предупреждение

У меня есть сайт, который работает нормально, но просто обновляя главную страницу (index_3.php), мой журнал ошибок заполняется двумя предупреждениями.

[08-Oct-2013 11:36:09] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home2/mysite/public_html/mysubsite/index_3.php:7) in /home2/mysite/public_html/mysubsite/functions.php on line 12 [08-Oct-2013 11:36:09] PHP Warning: session_regenerate_id() [<a href='function.session-regenerate-id'>function.session-regenerate-id</a>]: Cannot regenerate session id - headers already sent in /home2/mysite/public_html/mysubsite/functions.php on line 13 

Я достаточно исследовал, чтобы понять, что что-то отправляет данные страницы до начала сеанса, но я не могу объяснить причину. functions.php берется прямо с этого учебного сайта в разделе «Создание функций PHP». http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL

Кроме того, загрузка по index_3.php – это get_opwire.php, который просто помещает таблицу. Начало get_opwire.php выглядит так:

 <?php include 'db_connect.php'; include 'functions.php'; sec_session_start(); 

sec_session_start(); это пользовательский сеанс, расположенный в функции functions.php

Когда я пытаюсь переупорядочить порядок sec_session в верхней части или сдвигать те, которые вокруг таблицы ломаются. Index_3.php – это только основная страница, в основном html, которая включает в себя форму отправки и get_opwire.php

Кто-нибудь сможет помочь мне указать на проблему?

Изменить: index_3.php (от строки 1 до)

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"/> <meta name="Generator" content="Xara HTML filter v.6.0.1.335"/> <meta name="XAR Files" content="index_htm_files/xr_files.txt"/> <title>index_3</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="stylesheet" type="text/css" href="index_htm_files/xr_main.css"/> <link rel="stylesheet" type="text/css" href="index_htm_files/xr_text.css"/> <link rel="stylesheet" type="text/css" href="index_htm_files/custom_styles.css"/> <script type="text/javascript" src="index_htm_files/roe.js"></script> <!--[if IE]><script type="text/javascript" src="index_htm_files/prs.js"></script><![endif]--><!--[if !IE]>--><script type="text/javascript" src="index_htm_files/prs3.js"></script><!--<![endif]--> <script type="text/javascript">var xr_nextpage=""; var xr_transition=0; var xr_transitiontime=0;var xr_prevpage="index_2.htm"; var xr_btransition=0; var xr_btransitiontime=500;</script> <style type="text/css">.xr_pbd {position: absolute; border:none; left: 50%; margin-left: -380px;}</style> </head> 

EDIT 2: где-то внутри index_3.php

 <html> <body> <div style="width: 480px; height: 175px; overflow: auto;"> <?php include 'get_opwire.php'; ?> </div> </body> </html> 

Related of "Понимание ограничителя кеша | заголовки уже отправили php-предупреждение"