mam taki oto problem:
Próbuje wysłać cookies za pomocą funkcji setcookie, ale oczywiście wyskoczyć musi błąd ;]
oto kod w php jaki napisałem:
<?php $ustawienia="cos tam cos tam"; $_COOKIE['USTAWIENIA']=$ustawienia; } ?>
i teraz pojawia mi się taki oto błąd:
Kod
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /index.php:1) in /index.php on line 4
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /index.php:1) in /index.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /index.php:1) in /index.php on line 9
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /index.php:1) in /index.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /index.php:1) in /index.php on line 9
z tego co zrozumiałem to php nie może wysłać cookies bo są już wysłane nagłówki... tylko najdziwniejsze jest to, że nic nie wysyłam przed cookies'em (no chyba, że się mylę), mógłby ktoś pomóc?