Alles gechecked, 1x maar.
session_start(); Warning - Error
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.
En vooral omdat je het zelf niet gecode hebt, weet je dat niet zeker.
Alles zit in kladblok, staat niks voor.
Config.php
Index.php:
Werkt dit?
[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?
Dan is de error weg maar dan kan ik niet inloggen, dan werkt het PHP gedeelte niet meer.
config.php:
volgens mij moet dit wel werken?
[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?
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 en waar heb je de include staan met je config bestand? helemaal bovenaan index.php?
[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> Volgens mij staat er toch echt een verborgen teken voor de Kun je index.php eens bewerken in je DirectAdmin?
Och man, wat ben ik dom, Bedankt Luuk, dat was inderdaad het probleem.
Hier kan een slotje op.
EDIT: Er stond dit voor:
Hier kan een slotje op.
EDIT: Er stond dit voor: