IP Country Redirect

Discussion in 'PHP' started by antzman1414, Sep 3, 2007.

  1. #1
    Hello, I ahve a script that is suppose to redirect people to a different site based on there IP. I installed it and am getting the following error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/racing/public_html/index.php:2) in /home/racing/public_html/cr/cr/cr.php on line 254

    Does anyone know how to fix this?
     
    antzman1414, Sep 3, 2007 IP
  2. Brewster

    Brewster Active Member

    Messages:
    489
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #2
    This means that data is being outputted before the redirect.

    Brew
     
    Brewster, Sep 3, 2007 IP
  3. antzman1414

    antzman1414 Peon

    Messages:
    423
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I got it now. I just had to move the code to the beggining of the page.
     
    antzman1414, Sep 3, 2007 IP