Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: logowanie
Forum PHP.pl > Forum > PHP
parykstodwa
Robię logowanie i mam coś warningi w przeglądarce, prosze o pomoc i porady.

Kod
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files (x86)\WebServ\httpd\ndex.php:3) in C:\Program Files (x86)\WebServ\httpd\index.php on line 4

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files (x86)\WebServ\httpd\index.php:3) in C:\Program Files (x86)\WebServ\httpd\index.php on line 4

Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at C:\Program Files (x86)\WebServ\httpd\index.php:3) in C:\Program Files (x86)\WebServ\httpd\index.php on line 29

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files (x86)\WebServ\httpd\index.php:3) in C:\Program Files (x86)\WebServ\httpd\index.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files (x86)\WebServ\httpd\index.php:3) in C:\Program Files (x86)\WebServ\httpd\index.php on line 30

To po zalogowaniu, a tylko po wejściu na strone mam:

Kod
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files (x86)\WebServ\httpd\index.php:3) in C:\Program Files (x86)\WebServ\httpd\index.php on line 4

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files (x86)\WebServ\httpd\index.php:3) in C:\Program Files (x86)\WebServ\httpd\index.php on line 4


A to mój kod:

index: http://pastebin.com/UEAqNruS
main: http://pastebin.com/X7XnbCiK

używałem poradnika do tego: http://www.egrafik.pl/phpmysql-prosty-syst...owania,880.html
Korab
Poszukaj w Google "Cannot send session cache limiter - headers already sent" i poklikaj, to jest popularny problem.
i-skrypty.pl
http://i-skrypty.pl/artykuly/6-php-cannot-...s-already-sent/ smile.gif

tego jest tyle w internecie, że naprawdę dłużej trzeba poświęcić na założenie takiego tematu na forum niż wstukać w google. A w twoim przypadku dochodzi jeszcze rejestracja..
parykstodwa
Znalazłem, trzeba było zapisać bez boom i dodać ob_start();

Nie rozumiem tylko tego: ob_end_flush(); Na koniec pliku mam to dodać, ale którego? Index czy main? Dodatkowo prosiłbym o jakiś link czy coś, co pomogło by mi zobaczyć jak zrobić przykąłdową funkcje na zmiane nicku po zalogowaniu w koncie(bo anwet nie wiem jak to poszukać)

Dziękuje z pomoc i przepraszam za kolejny temat z rzędu "logowanie nie działa". Piątka.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.