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
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
<?php $im = imagecreate(45,25); $bg = imagecolorallocate($im, 223, 12, 25); $textcolor = imagecolorallocate($im, 0, 0,255); imagestring($im,5,5,5,$_SESSION['token'],$textcolor); imagegif ($im); ?>
w formularzu 2 linia to:
<?php ?>