On the top of my web page, I have this error message:
Warning: Cannot modify header information – headers already sent by (output started at /home/fgcomics/public_html/tester.php:6) in /home/fgcomics/public_html/tester.php on line 25
Code for top of page:
[CODE]
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<title>FGComics.com :: TEMPLATE</title>
<?php
/* To add new skins, just put a new option in
the drop-down menu for it. Follow the format
of previous options. */
if (isset($_GET[“skinpref”]))
{
$skinpref = $_GET[“skinpref”];
}
elseif (isset($_COOKIE[‘skinpref’]))
{
$skinpref = $_COOKIE[‘skinpref’];
}
else
{
// Default style
$skinpref = blue;
}
// Set a cookie with the new style
setcookie(“skinpref”, $skinpref, time()+432000, “/”, “http://www.fgcomics.com”);
echo ‘<link rel=”stylesheet” type=”text/css” href=”http://www.fgcomics.com/css/fgcomics_’.$skinpref.’.css”>’.”n”;
?>
<script type=”text/javascript”>
<!—
function MM_jumpMenu(targ,selObj,restore)
{
eval(targ+”.location='”+selObj.options[selObj.selectedIndex].value+”‘”);
if (restore) selObj.selectedIndex=0;
}
//—>
</script>
<style type=”text/css”>
<!–
.style1 {color: #004182}
–>
</style>
</head>
Line 25:
[CODE]setcookie(“skinpref”, $skinpref, time()+432000, “/”, “http://www.fgcomics.com”);