PDA

View Full Version : Help?


UltimateOreo!
03-28-2007, 12:25 AM
Well, im making a very small PHP script, here it is-


<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'biography');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array(
'biography'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###

eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('biography') . '");');


?>

Although, whenever a guest visits it, this error shows up-

Unable to add cookies, header already sent.
File: /home/****/public_html/biography.php
Line: 1

How would I get it so that guests would be able to view it?

calorie
03-28-2007, 12:33 AM
Check for any whitespace before the <?php and remove it.

UltimateOreo!
03-28-2007, 12:38 AM
Lol, so simple, yet then again im an idiot. Thanks.
Edit- Worked perfectly, thanks for your help.