View Full Version : included file sending headers??

02-22-2003, 05: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:


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;

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.


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

02-22-2003, 05:59 PM
That was it - thank you .