session_start(); Warning - Error

Gestart doorSapje25 reacties128 weergaven

26 berichten · pagina 2 van 2

Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Alles gechecked, 1x maar.
0
Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Kopieer alles is in kladblok, er kunnen volgens mij onzichtbare tekens voor staan als ik me niet vergis.
En vooral omdat je het zelf niet gecode hebt, weet je dat niet zeker.
0
Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Alles zit in kladblok, staat niks voor.
0
Berichten
474
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Config.php

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


Werkt dit?
0
Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dan is de error weg maar dan kan ik niet inloggen, dan werkt het PHP gedeelte niet meer.
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
config.php:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/ob_start"]ob_start[/URL][COLOR= #007700]();[/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]"host"[/COLOR] [COLOR= #007700],[/COLOR] [COLOR= #DD0000]"user"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"wachtwoord"[/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]"database"[/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]
?>


volgens mij moet dit wel werken?
0
Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Marjolein schreef:
config.php:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/ob_start"]ob_start[/URL][COLOR= #007700]();[/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]"host"[/COLOR] [COLOR= #007700],[/COLOR] [COLOR= #DD0000]"user"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"wachtwoord"[/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]"database"[/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]
?>


volgens mij moet dit wel werken?
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/juicystage/domains/juicystage.s2.one2xs.com/public_html/index.php:1) in /home/juicystage/domains/juicystage.s2.one2xs.com/public_html/include/config.php on line 3
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
en waar heb je de include staan met je config bestand? helemaal bovenaan index.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/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
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Volgens mij staat er toch echt een verborgen teken voor de Kun je index.php eens bewerken in je DirectAdmin?
0
Sapje

Lid · Topicstarter

Berichten
149
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Och man, wat ben ik dom, Bedankt Luuk, dat was inderdaad het probleem.

Hier kan een slotje op.

EDIT: Er stond dit voor:
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