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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP header(Location: url) error...

    I have written some PHP code that works perfectly on 2 out of 3 servers.
    On one of my servers I get the error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/hosttek/public_html/PHPMembershipSite/classes/clsMetaContent.php:49) in /home/hosttek/public_html/PHPMembershipSite/login.php on line 22

    It refers to my line of code where I use my header(Location: url) function, to redirect my page.

    Why would one of my servers generate this error? It is a PHP enabled server. Is there a setting that must be made??

    Please help,
    Thanks,
    Infekt_001

  • #2
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    teehee...

    ok, that one server must be more picky for than the others.

    it was an extra line after my closing ?> in one of my include files.

    Example:

    <?php
    code
    ?>
    -----extra line----


  •  

    Posting Permissions

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