php error

Gestart doorWashand10 reacties70 weergaven

11 berichten · pagina 1 van 1

Washand

Lid · Topicstarter

Berichten
1.909
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/klikkenp/domains/domein/public_html/CLS/registeren.php:15) in /home/klikkenp/domains/domein/public_html/CLS/config.php on line 2

config.php:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[COLOR= #0000BB]$sql[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]klikken_washand[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//database user[/COLOR]
[COLOR= #0000BB]$sql[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]MIJNWACHTWOORD[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//database password[/COLOR]
[COLOR= #0000BB]$sql[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]host[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]localhost[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//database host[/COLOR]
[COLOR= #0000BB]$sql[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]db[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]klikken_inloggen[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//database naam[/COLOR]
[URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]host[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$sql[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$sql[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]wachtwoord[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$sql[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]db[/COLOR][COLOR= #007700]])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]db[/COLOR][COLOR= #007700]])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
?>


Ik snap er echt totaal niets van.
0
Berichten
714
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waarschijnlijk heb je in een script al session_start(); neergezet en dat niet twee keer
Ik weet ook niet waarom dat is maar was bij mij ook.
of je hebt zoiets als header(Location:index.php);
ergens staan dat kan ook blijkbaar niet
0
Washand

Lid · Topicstarter

Berichten
1.909
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat moet ik dan veranderen herculesje?
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
in registreren.php de session_start() weghalen aangezien hij al word gestart in config.php
0
Washand

Lid · Topicstarter

Berichten
1.909
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Er staat geen session start in rgistreren.php
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wordt er html geladen voordat je config.php include??

dan is dat namelijk het probleem..

Bijv:










Dan word er al html gestuurd en werkt de session_start() niet..

zelfs een spatie of een enter is al te veel!
0
Washand

Lid · Topicstarter

Berichten
1.909
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja er wordt html geladen ervoor. Wat moet ik dan doen? Alles weghalen?
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ligt aan je programmeer style..

ik heb 1 index waar ik alles include (dus ook paginas die worden aangeroepen.)

dus ik heb alleen session_start(); bovenaan mijn index.php staan verder nergens.

maar het moet sowieso bovenaan alles.
0
Washand

Lid · Topicstarter

Berichten
1.909
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Justafool check je PM.

//Justafool is offline. Kan iemand anders me helpen?
2 berichten samengevoegd
0
Washand

Lid · Topicstarter

Berichten
1.909
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Justafool is offline. Kan iemand anders me helpen?
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
op verzoek van TS op slot, probleem is opgelost.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren