Mam problem z Warningami.
Nie wiem czemu i dlaczego, ale na VertrigoServie działało okej, a tu nagle nie.
Kombinowałem już na kilka sposobów i dalej nic.
Oto błędy:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/konrad95x/domains/stronye-net.pl/public_html/bank_test/bankier/index.php:1) in /home/konrad95x/domains/stronye-net.pl/public_html/bank_test/bankier/strony/logowanie.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/konrad95x/domains/stronye-net.pl/public_html/bank_test/bankier/index.php:1) in /home/konrad95x/domains/stronye-net.pl/public_html/bank_test/bankier/strony/logowanie.php on line 103
Polega to na tym, że na stronie główniej - index.php mam na default glowna.php z folderu strony.
Tam ma się zalogować i przenosi na stronę logowanie.php
i są błędy.
Podam 2 te kody cześciowo plików i proszę o pomoc

<?php ob_start(); // Report all errors except E_NOTICE // This is the default value set in php.ini error_reporting(E_ALL ^ E_NOTICE); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="xxx" /> <meta name="description" content="xxx" /> <link href="css/templatemo_style.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" /> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider({ effect:'random', slices:15, animSpeed:500, pauseTime:2500, startSlide:0, //Set starting Slide (0 index) directionNav:false, directionNavHide:false, //Only show on hover controlNav:false, //1,2,3... controlNavThumbs:false, //Use thumbnails for Control Nav pauseOnHover:true, //Stop animation while hovering manualAdvance:false, //Force manual transitions captionOpacity:0.8, //Universal caption opacity beforeChange: function(){}, afterChange: function(){}, slideshowEnd: function(){} //Triggers after all slides have been shown }); }); </script> </head> <body><!--- <div class="menuA"> require("strony/menu.php"); </div> <style> .menuA{position:fixed; top:150px; left: -140px;} .menuA{width:150px; height: 150px; border: 1px dashed black;background-color: rgba(0, 0, 0, 0.5); padding: 10px; box-shadow: 0px 0px 10px black;} .menuA a {color: white; font-weight: bold;} .menuA a:hover{font-size:x-large;} .menuA:hover{position:fixed; top:150px; left:0px;} </style> !--> <div id="templatemo_wrapper"> <div id="templatemo_header"> </div> <div id="templatemo_menu"> </div> <div id="templatemo_middle"> <div id="slider"> </div> <?php switch($_GET['s']) { case 'glowna' : require("strony/glowna.php"); break; case 'logowanie' : require("strony/logowanie.php"); break; case 'logowanie2' : require("strony/logowanie.php"); break; case 'wyloguj' : require("strony/wyloguj.php"); break; case 'zalogowany' : require("strony/zalogowany.php"); break; default: require("strony/glowna.php"); break; } ?> </div>
To jest część kodu index.php
A teraz część kodu glowna.php z folderu strony
<?php if ($_POST['wyslane']) { // jeżeli formularz został wyssany, to wykonuje się poniższy skrypt include 'strony/db.php'; // połązenie sie z bazą danych $tabela = 'bankier'; // zdefiniowanie tabeli MySQL $haslo = ($haslo); // szyfrowanie podanego hasła login='$login' and haslo='$haslo' and nrbankiera='$nrbankiera' and status=0"); // jeżeli użytkownik zarejestrował się, a nie aktywował swojego konta, to wyświetla się komunikat echo '<p><font size="2" color="red"><br><b>Twoje konto zostało zablokowane.</font><br><font size="2" color="black">Przyczyna została przesłana na maila.<br> Aby je odblokować skontaktuj się z nami. </b><br><br></font></p>'; exit; } // jeżeli wszystko jest dobrze, użytkownik się loguje login='$login' and haslo='$haslo' and nrbankiera='$nrbankiera' and status=1"); mysql_query('UPDATE '. $tabela .' SET `ostatnielog`=NOW() WHERE `login`="'. $informacja["login"] .'"'); $_SESSION["login"] = $informacja["login"]; } else { echo '<p><font size="2" color="red"><br><br><b>Dane są nieprawidłowe. Spróbuj jeszcze raz.<br><br></b></font></p>'; } } // tworzenie formularza HTML echo <<< KONIEC <form style="margin-top:-20px;" action="index.php?s=logowanie2" method="post" id="contactform"> <input type="hidden" name="wyslane" value="TRUE" /> <label for="login"><font size="2"><font color="red">*</font>Login:<br></font> <input id="login" name="login" class="text"></input> <div id="ilogin" class="error"></div></label><br> <label for="haslo"><font size="2"><font color="red">*</font>Hasło:<br></font> <input type="password" id="haslo" name="haslo" class="text"></input> <div id="ihaslo" class="error"></div></label><br> <label for="nrbankiera"><font size="2"><font color="red">*</font>Numer bankiera:<br></font> <input id="nrbankiera" name="nrbankiera" class="text" maxlength="12"></input> <div id="inrbankiera" class="error"></div></label><br> <br> <input type="submit" value="Zaloguj się" id="submit" enctype="text/plain" /> <input type="button" value="Wyczyść" onClick="location.reload();"></input><br></font><br> </b> <p style="margin-left:170px; margin-top:-50px;"> <font size="2"><font color="red">*</font> <font size="2" color="red">Pola oznaczone gwiazdką są wymagane</font></p><br></form><br><br> KONIEC; } else { header('Location: index.php?s=zalogowany '); // zalogowany użytkownik zostaje przekierowany na stronę główną } if ($_GET["wylogowanie"] == "tak") { // niszczenie sesji użytkownika } ?>
I to zapewne tutaj leży gdzieś problem. !
A plik logowanie.php jest taki sam jak glowna.php