несколько дней назад обновлял сайт, и сегодня захожу и вижу вот что:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/адрес сайта/member/index.php:2) in /var/www/адрес сайта/internals/API/HttpUser.class.php on line 26
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/адрес сайта/member/index.php:2) in /var/www/user3179/адрес сайта/internals/API/HttpUser.class.php on line 28
вот сам PHPшник
<?php
class SK_HttpUser
{
/**
* This var temporarily becomes hardcoded.
* There are no ways to change this value except here.
* Function $HTTP_USER->i18n_lang() is the only way to read this value.
*
* @var integer
*/
private static $lang_id = 1;
/**
* Keeps the reference to $_SESSION['%http_user%']
*
* @var array
*/
private static $session;
/**
* Constructor. Starts a session.
*/
public static function session_start()
{
header('Content-Type: text/html; charset=UTF-8');[/b]
session_start();
self::$session =& $_SESSION['%http_user%'];
if (!self::is_authenticated()) {
if ( isset($_COOKIE['_username']) && isset($_COOKIE['_unique'])
&& app_Profile::checkCookiesLogin($_COOKIE['_username'], $_COOKIE['_unique']) )
{
app_Profile::cookiesLogin($_COOKIE['_username']);
полностью весь выкладывать не стал.
26 и 28 строки вот:
header('Content-Type: text/html; charset=UTF-8');[/b]
session_start();
как исправить? помогите