...

View Full Version : included file sending headers??



katlas
02-22-2003, 04:50 AM
I decided to move all my variables to their own file, which i am calling config.php - and to include it in the main script files using:

include('config.php');

The only thing in config.php is the varables setting which used to be in the main file (and was working fine when there).

Now, I'm getting an error in the main file when I try to set a cookie - headers already sent by 'line 24' of the included file. Line 24 is the last line (after the ?>).

If it helps, here what's in the config.php file:

<?
$dpath= "/home/virtual/site14/fst/var/www/html/test/";
$durl = "http://in-the-e-zone.com/ezsoft";
$adminemail = "webmaster@in-the-e-zone.com";
$cookiename = 'ezscust';
$cookiedays = 90;
$pagehoursactive = 1;
$refcheck='no';
?>

I guess my question is -- nowhere in the manual does it say anything about included files sending headers, so...

Should I not be naming this config.php (I don't think it matters, but...)

Help, I'm not sure what/where to figure out what going on.

Thanks,
Kathy

Dylan Leblanc
02-22-2003, 06:57 AM
Make sure there is no new-line after the closing ?> tag in the config file.

katlas
02-22-2003, 04:59 PM
That was it - thank you .
Kathy:)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum