session_start(); Warning - Error

Gestart doorSapje25 reacties128 weergaven

26 berichten · pagina 1 van 2

Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/juicystage/domains/***/public_html/index.php:1) in /home/juicystage/domains/***/public_html/index.php on line 1


Config.php:

[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"**"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"**"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"**"[/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= #DD0000]"**"[/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]
?>


Alles wat ik probeer blijft bij dezelfde error.

Help aub
0
Berichten
5.498
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En wat staat er in je index.php ?
0
Berichten
326
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kan je index.php ook even posten?
0
Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]include/config.php[/COLOR][COLOR= #007700];[/COLOR]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Voordeel in Groningen</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

<div id="logo"></div>
<div id="zoeken"><form action="?p=zoeken" name="zoeken" method="POST"> 
                <input type="text" style="width: 70%;" value="" name="titel" /> 
                <input type="submit" value="Zoeken" /> 
            </form> </div>
<div id="balk"><center></center></div>
<div id="clear"></div>
<div id="midden">
    [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"pagina.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
    <div id=content_right>
<div style=clear: both;></div>
<div id=box>
<div class=inner>
<center>Copyright  Voordeel in Groningen - 2010-2011</center>
</div>
</div>
</div>
</body>
</html>
0
Berichten
5.498
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En wat staat er in pagina.php ?
0
Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]


[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]])) {[/COLOR]

[URL="http://www.php.net/switch"]switch[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]) {
default:[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000].php[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000].php[/COLOR][COLOR= #007700]);
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina/404.php[/COLOR][COLOR= #007700]);
}
}[/COLOR]
[URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina/home.php[/COLOR][COLOR= #007700]);
}[/COLOR]
?>
0
Berichten
6.037
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Is dit het whear systeem? smile
0
Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee, is het niet
0
Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
het is het musicu systeem
kijk maar juicystage.s2.one2xs.com
0
Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Probleem mee?
0
Berichten
5.498
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Controleer of je niet ergens per ongeluk 2x session start hebt staan wink
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Weet niet zeker maar;
Config:

[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"**"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"**"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"**"[/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= #DD0000]"**"[/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]
?>


index.php

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]include/config.php[/COLOR][COLOR= #007700];[/COLOR]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Voordeel in Groningen</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

<div id="logo"></div>
<div id="zoeken"><form action="?p=zoeken" name="zoeken" method="POST"> 
                <input type="text" style="width: 70%;" value="" name="titel" /> 
                <input type="submit" value="Zoeken" /> 
            </form> </div>
<div id="balk"><center></center></div>
<div id="clear"></div>
<div id="midden">
    [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"pagina.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
    <div id=content_right>
<div style=clear: both;></div>
<div id=box>
<div class=inner>
<center>Copyright  Voordeel in Groningen - 2010-2011</center>
</div>
</div>
</div>
</body>
</html>
0
Berichten
5.498
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Dylanh, Dat gaat niet werken emoAls je er geen verstand van hebt moet je ook niet gaan posten wink
0
Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Klaas 1x Session in config

@Dylanh werkt niet.
0
Berichten
5.498
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sapje schreef:
@Klaas 1x Session in config
@Dylanh werkt niet.

Ja in de config staat het 1 keer, maar miss staat het op andere paginas die geinculde worden ook nog een keer wink
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