Lange tijd geleden dat ik hier geweest ben maar ik zit met een probleempje :(
Op mijn eigen host werkt het wel :) Host heb ik al gecontact maar die weten het niet :S
Ik krijg de volgende error:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ictupdates/domains/ictupdates.nl/public_html/index.php:1) in /home/ictupdates/domains/ictupdates.nl/public_html/index.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ictupdates/domains/ictupdates.nl/public_html/index.php:1) in /home/ictupdates/domains/ictupdates.nl/public_html/index.php on line 2
Bij het volgende script:
<?php
session_start();
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ICTupdates.nl - ICT nieuws en meer</title>
<link type="text/css" rel="stylesheet" href="/style.css" />
<meta http-equiv="content-type" content="iso-8859-1" />
<meta name="title" content="ICTupdates.nl - Alles dat met ICT te maken heeft" />
<meta name="description" content="ICTupdates.nl - Alles dat met ICT te maken heeft" />
<meta name="keywords" content="ict updates, ICTupdates, Security Nieuws, ICT nieuws, IT Nieuws, ICT Security, IT Security, computer nieuws, internet nieuws, security nieuws, Security Films, Security Tips, Security Truucs" />
</head>
<body><div id="box">
<div id="header">
<div id="header_login">
<form action="" method="post" style="margin:0px;">
<table>
<tr><td>Gebruikersnaam:</td><td></td></tr>
<tr><td><input type="text" name="gebrnaam" style="width:168px;border:none;" /></td><td style="width:20px;"></td><td><input type="image" src="/images/header_login_button.jpg" value="Login" class="header_login_button"/></td></tr>
<tr><td>Wachtwoord:</td><td style="width:20px;"></td><td style="padding-left:12px;">Ww vergeten?</td></tr>
<tr><td> <input type="text" name="ww" style="width:168px;border:none;" /></td><td style="width:20px;"></td><td style="padding-left:12px;">Aanmelden</td></tr>
</table>
</form>
</div>
</div>
<div id="content">
<div id="menu">
<div class="menuitem"><a href="/">Home</a></div>
<div class="menuitem"><a href="/ict/">ICT</a></div>
<div class="menuitem"><a href="/videos/">Videos</a></div>
<div class="menuitem"><a href="/nieuws/">Nieuws</a></div>
<div class="menuitem"><a href="/overons/">Over Ons</a></div>
<div class="menuitem"><a href="/partners/">Partners</a></div>
<div class="menuitem"><a href="/contact/">Contact</a></div>
<div style="clear:both;"></div>
</div>
<?php
if(empty($_GET['p']) || $_GET['p'] == 'home'){?>
<div id="side_left">
<h2>Wat doen we?</h2>
<div style="width:180px;background-color:#ebebeb;padding:5px;">
Wij verdiepen ons in Informatie en Communicatie Technologie.<br />
<br />
Wij plaatsen ICT Nieuws, truucs, filmpjes, tips en nog meer om zo ICT’ers op de hoogte te houden.
</div>
<div style="font-weight:bold;padding:10px;width:170px; text-align:center;">Bekenden</div>
<div class="side_button">Security.nl</div>
<div class="side_button">Webwereld.nl</div>
</div>
<?php
}
?>
<?php if(empty($_GET['p']) || $_GET['p'] == 'home'){echo '<div id="main">';}else{echo '<div id="main2">';}?>
<?php
switch(@$_GET['p']){
case "ict":include("pages/ict.php");break;
case "nieuws":include('pages/nieuws.php');break;
case "videos":include('pages/videos.php');break;
case "overons":include('pages/overons.php');break;
case "contact":include('pages/contact.php');break;
case "partners":include('pages/partners.php');break;
case "msnvideo":include('pages/msnvideo.php');break;
case "hostsvideo":include('pages/hostsvideo.php');break;
default:include('pages/home.php');break;
}
?>
</div><div style="clear:both;"></div>
</div>
<div id="footer">Copyright 2009 - 2010 ICTupdates.nl ICT nieuws</div>
</div></body>
</html>
Iemand enig idee? Bvd.