Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Warning: session_start
topgear
post
Post #1





Grupa: Zarejestrowani
Postów: 39
Pomógł: 1
Dołączył: 23.04.2009

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


Witam
Na mojej stronie wyskakuje mi taki błąd
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/supromyk/ftp/v2/index.php:13) in /home/supromyk/ftp/v2/index.php on line 15

Próbowałem ustawić kodowanie UTF-8 bez BOM lecz niestety nic to nie pomaga. Próbowałem także dodac ob_start(); lecz także nic.

Oto fragment kodu:
  1. <link href="asd.css" rel="stylesheet" type="text/css" />
  2. </head>
  3.  
  4. <body>
  5. <div id="tlo">
  6.  
  7. <div id="menu"> <span class="menu"><a href="index.php">Strona Główna </a></span> <span class="menu"><a href="aktualnosci.php">Aktualności</a></span> <span class="menu"><a href="zadania.php">Zadania</a></span> <span class="menu"><a href="kontakt.php">Kontakt</a></span></div>
  8. <?php
  9.  
  10.  
  11. if(!$_SESSION['nick']){
  12. echo "<div id=logowanie><span class=login>LOGIN:</span>
  13. <input name=nick type=text class=texarea size=10 maxlength=15 />
  14. &nbsp;&nbsp;<span class=login>HASŁO:</span>
  15. <input name=haslo type=password class=textarea size=10 maxlength=15 />
  16. <input name= type=submit class=submit value=Zaloguj />
  17. </div>";}else{echo "<div id=logowanie><span class=login>LOGIN:</span></div>";}?>
  18. <div id="info">


Ten post edytował topgear 11.04.2010, 13:07:18
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: 24.08.2025 - 17:36