Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Cannot send session cookie, Cannot modify header information
Dawid_
post
Post #1





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 21.07.2006

Ostrzeżenie: (0%)
-----


Witam!

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 ))
...


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


Można dać session_start w index.php i po kłopocie, ale...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
L_Devil
post
Post #2





Grupa: Zarejestrowani
Postów: 195
Pomógł: 0
Dołączył: 13.04.2004
Skąd: Łódź

Ostrzeżenie: (0%)
-----


Masz entera przed <?php (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.12.2025 - 18:09