Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] błędy sesji
kononowicz
post
Post #1





Grupa: Zarejestrowani
Postów: 238
Pomógł: 0
Dołączył: 12.11.2006
Skąd: Białystok

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


witam

mam problem. u mnie na serwerze xammpie wszystko jest ok ale po wgraniu na serwer znajomego wyskakuje taki blad

  1. Warning: session_start() [FUNCTION.session-start]: open(/tmp/sess_c62eaf47adde38dd7769371f7871773a, O_RDWR) failed: No such file OR directory (2) IN /INDEX.php ON line 2
  2.  
  3. Warning: session_start() [FUNCTION.session-start]: Cannot send session cookie - headers already sent BY (output started at /INDEX.php:2) IN /INDEX.php ON line 2
  4.  
  5. Warning: session_start() [FUNCTION.session-start]: Cannot send session cache limiter - headers already sent (output started at /INDEX.php:2) IN /INDEX.php ON line 2


plik index.php z zainicjowaniem sesji jest nastepujacy:

  1. <?php
  2. session_start();
  3. IF(!isset($_SESSION['lang']))
  4. {
  5. $_SESSION['lang']='pl';
  6. }
  7. $view = $_GET['view'];
  8. $strony = array(
  9. "glowna" => "glowna.php",
  10. "video" => "video.php",
  11. "historia" => "historia.php",
  12. "produkcja" => "produkcja.php",
  13. "rodzaje" => "rodzaje.php",
  14. "kalkulatory" => "kalkulatory.php",
  15. "instrukcje" => "instrukcje.php",
  16. "onas" => "onas.php",
  17. "kontakt" => "kontakt.php");
  18.  
  19. IF($strony[$view] != '')
  20. {
  21. require_once ("header.php");
  22. include ($strony[$view]);
  23. require_once ("menu.php");
  24. }
  25. else
  26. {
  27. require_once ("header.php");
  28. include ("glowna.php");
  29. require_once ("menu.php");
  30. }
  31.  
  32. ?>


prosze o pomoc


--------------------
gdy moderator śpi - budzą się demony ]:->
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 19:33