I have this system setup for my site locksmithcafe.com. However, when I log out of the forum and go to locksmithcafe.com it gives me the following error:
Quote:
Unable to add cookies, header already sent.
File: /home/httpd/vhosts/locksmithcafe.com/httpdocs/index.php
Line: 9
|
whats up with that do you think?
Here is my index.php page:
PHP 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>Welcome to the Locksmith Cafe!</title>
</head>
<body>
<?php
// OUR CONTENT BEGINS ON LINE 48 -----------------------------------------
// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("./forum");
// ## Error Reporting ( we use error reporting in php so we can control the display of error messages
// ## we will use this because all vBulletin files follow the same error reporting rules) ##
error_reporting(E_ALL & ~E_NOTICE);
// ## this here defines the "this_script" function, which if you use template conditionals, it will come in handy :) ##
define('THIS_SCRIPT', 'page');
// ## this action here cache's the templates so that everytime their needed a querry wont be needed to run
// ## the names in there are just the template names :), there must be a comma after everyone but the last ##
$globaltemplates = array(
'headinclude',
'header',
'navbar',
'footer'
);
// ## Grabs global.php this grabs vbulletins global.php so we can use the most basic of vBulletins functions ##
require_once("./global.php");
// ## ok this next set of lines "eval"'s our templates so they can be called inside the template we will print out ##
eval('$h_include = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
//eval('$navbar = "' . fetch_template('navbar') . '";');
eval('$footer = "' . fetch_template('footer') . '";');
//eval('print_output("' . fetch_template('headinclude') . '");');
echo $h_include;
echo $header;
//echo $navbar;
// ********************************************************************************
// place our content here *********************************************************
echo '
<h3>Welcome to the Locksmith Cafe!</h3>
<br><br><br><br>
<h3>Find a Locksmith in Your area!</h3>
';
include $_SERVER['DOCUMENT_ROOT'].'/search.html';
// end our content ****************************************************************
// ********************************************************************************
echo $footer;
?>
</body>
</head>
Any ideas?
thanks
Lem