Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    included file sending headers??

    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
    www.e-work-zone.com
    www.e-book-zone.com

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    British Columbia
    Posts
    235
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Make sure there is no new-line after the closing ?> tag in the config file.

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Yes!!

    That was it - thank you .
    Kathy
    www.e-work-zone.com
    www.e-book-zone.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •