Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z header
grzesza
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 23.04.2005

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


hi!

wyskakuje mi nastepujacy komunikat:


Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\funkcje\display.php:25) in C:\Inetpub\wwwroot\logowanie.php on line 19

a o to kod:
  1. <? 
  2. //$_SESSION[\"adres\"] = $email;
  3. require_once(&#092;"funkcje/funkcje.php\");
  4.  
  5.  $stat= login($email, $passwd);
  6. if (is_array($stat) )
  7. { //$row = db_result_to_array($status); 
  8.  $dostep = $stat[0];
  9.  
  10.  
  11. if ( $dostep == &#092;"aktywne\")
  12. {
  13. //$valid_user = $email;
  14.  
  15. // session_register('valid_user');
  16. $_SESSION['valid_user'] = $email; 
  17. // echo $_SESSION['valid_user'];
  18.  header(&#092;"Location: mojekonto.php?id=0\");
  19. exit;
  20. }
  21.  
  22. ?>


jak wstawie ob_start() to przechodzi dalej z tym, ze po przekierowaniu trace zmienne zapisane w $_SESSION.

zauwazylem ze tworzy dwa pliki sesji - jeden jest pusty, a w drugi dane o ktore mi chodzi.
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:18