Hallo allemaal, ik heb een probleem. Ik heb de volgende script:
<!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=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php
//Calculate 60 days in the future
//seconds * minutes * hours * days + current time
$inTwoMonths = 60 * 60 * 24 * 60 + time();
setcookie(lastVisit, date("G:i - m/d/y"), $inTwoMonths);
if(isset($_COOKIE['lastVisit']))
$visit = $_COOKIE['lastVisit'];
else
echo "You've got some stale cookies!";
echo "Your last visit was - ". $visit;
?>
</body>
</html>
Het script werkt wel alleen krijg ik de volgende fout:
[b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /web-drive/gimyweb/homes/roy/counter.php:9) in [b]/web-drive/gimyweb/homes/roy/counter.php[/b] on line [b]10[/b]
Weet iemand waar dit door komt en hoe ik dit op kan lossen? Alvast bedankt.
Hallo allemaal, ik heb een probleem. Ik heb de volgende script:
Het script werkt wel alleen krijg ik de volgende fout:
Weet iemand waar dit door komt en hoe ik dit op kan lossen? Alvast bedankt.