Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2003
    Location
    UK
    Posts
    294

    any php experts?

    Any idea what could be causing this?

    its only for the admin panal this is showing

    Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/league/config/config.php:137) in /home/****/public_html/league/login.php on line 144

    Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/league/config/config.php:137) in /home/***/public_html/league/login.php on line 145

    Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/league/config/config.php:137) in /home/****/public_html/league/login.php on line 81

    Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/league/config/config.php:137) in /home/***/public_html/league/login.php on line 96

    Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/league/config/config.php:137) in /home/***/public_html/league/login.php on line 81

    Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/league/config/config.php:137) in /home/***/public_html/league/login.php on line 96

    Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/league/config/config.php:137) in /home/***/public_html/league/login.php on line 152

  2. #2
    It's because you're trying to send headers (cookies, sessions, raw headers) AFTER you've sent some HTML.
    You must first send headers, then HTML (meaning if you're using setcookie(), you can't put it in the middle of your html document).

    Or you could use output buffering (which is doing your job for you).
    Put ob_start() at the beginning of your page and ob_end_flush() at the end of your page.

  3. #3
    Join Date
    Feb 2003
    Location
    UK
    Posts
    294
    which file? login or config? thanks for the fast reply aswell

  4. #4
    Check them both. Even a space or newline is considered as output (meaning if you have <space><?php code here?> -> it's considered as output).

    But if I had to take a guess, I'd say that problematic file would be config.php. Check it's line 137 and ensure that there are no output there. You might want to paste that line along with lines from login.php so we could inspect them..

  5. #5
    Join Date
    Feb 2003
    Location
    UK
    Posts
    294
    awsome i will do and thanks for your time helping

    Much appreciated

  6. #6
    Join Date
    Feb 2003
    Location
    UK
    Posts
    294
    Sorted re did the config all good now thank you very much maxymizer

  7. #7
    I'm glad it works

Posting Permissions

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