Wiem... było to na forum, ale jakoś nie moge sobie z tym poradzić.
Mianowicie:
Początek kodu index.php:
Kod
<?php
require_once("SelectedOption.php");
require_once("class/player.php");
if($user->AreYouLogin( false ))
...
require_once("SelectedOption.php");
require_once("class/player.php");
if($user->AreYouLogin( false ))
...
Początek zawartość pliku SelectedOption.php:
Kod
<?php ob_start();session_start();
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
require_once("config.php");
Efekt jest taki:
Cytat
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/makss/public_html/projekt/SelectedOption.php:1) in /home/makss/public_html/projekt/SelectedOption.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/makss/public_html/projekt/SelectedOption.php:1) in /home/makss/public_html/projekt/SelectedOption.php on line 1
Warning: Cannot modify header information - headers already sent by (output started at /home/makss/public_html/projekt/SelectedOption.php:1) in /home/makss/public_html/projekt/index.php on line 76
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/makss/public_html/projekt/SelectedOption.php:1) in /home/makss/public_html/projekt/SelectedOption.php on line 1
Warning: Cannot modify header information - headers already sent by (output started at /home/makss/public_html/projekt/SelectedOption.php:1) in /home/makss/public_html/projekt/index.php on line 76
Można dać session_start w index.php i po kłopocie, ale...