Mam problem ze skryptem logowania. Zwraca mi 2 errory:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/derek/public_html/index.php:9) in /home/derek/public_html/login.php on line 10
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/derek/public_html/index.php:9) in /home/derek/public_html/login.php on line 10
<?php include('config.php'); $nick = $_POST['nick']; $haslo = $_POST['haslo']; $_SESSION['zalogowany'] = 1; } print('<a href="register.php"> Rejestracja</a> <a href="forget_password.php">Zapomniałem hasła</a>'); } if($show['ranga'] == 'admin'){ } } ?>
Dodawanie ob_start() i ob_edn_flush() nie pamaga