I retrieved this little code from the sniplet page.
<?PHP
setcookie("TEMPCOOKIE", "NOVALUE", time() + 60 * 60);
$cookieinfo = $HTTP_COOKIE_VARS["TEMPCOOKIE"];
if ($cookieinfo == "$cookieinfo") {
echo "you have cookies enabled";
exit;
} else {
echo "you have cookies disabled";
exit;
}
?>
It works fine inside it's own file, but when I paste the code into another site I get a error message stating:
Warning:
Cannot add header information - headers already sent by (output started at c:\apache\htdocs\php_new\tmpgutk33o2t3.php:9) in c:\apache\htdocs\php_new\tmpgutk33o2t3.php on line 50
Where did it go wrong????
Jacco