Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> dziwny błąd sesji, tlyko na home.pl
robos85
post
Post #1





Grupa: Zarejestrowani
Postów: 466
Pomógł: 11
Dołączył: 21.09.2006
Skąd: Szczecin

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


Otóż mam napisany formularz kontaktowy z tokenem, gdzie wartość przekazywana jest poprzez sesje.
Po włączeniu pliku na home.pl mam taki błąd:

Cytat
Warning: session_start() [function.session-start]: open(/tmp/sess_a0910eb8d37aad774aae64a97091d6d8, O_RDWR) failed: No such file or directory (2) in /test/contact.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /test/contact.php:2) in /test/contact.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /test/contact.php:2) in /test/contact.php on line 2


dla przykładu na netmark.pl działa bezproblemowo tak samo jak na localu u mnie.

Jak to naprawić?
token.php
  1. <?php
  2.  
  3.  
  4. $im = imagecreate(45,25);
  5. $bg = imagecolorallocate($im, 223, 12, 25);
  6. $textcolor = imagecolorallocate($im, 0, 0,255);
  7. imagestring($im,5,5,5,$_SESSION['token'],$textcolor);
  8. header ("Content-type: image/gif");
  9. imagegif ($im);
  10.  
  11.  ?>


w formularzu 2 linia to:
  1. <?php
  2. ?>
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: 23.08.2025 - 19:31