usin Header for force downloading but giving error

Discussion in 'PHP' started by romeo2010, Apr 10, 2008.

  1. #1
    Hello i am using this with in a function.. which allow the file to be downloaded


    before everything was workign fine except that now.. its giving me this error



    can someone help
     
    romeo2010, Apr 10, 2008 IP
  2. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #2
    What is on line 2 of download.php?
     
    mwasif, Apr 10, 2008 IP
  3. romeo2010

    romeo2010 Peon

    Messages:
    183
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    its actually line 24 and it contain this on line 24

    header("Location: $linkdown");
     
    romeo2010, Apr 10, 2008 IP
  4. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #4
    Sorry for the typo. This error occurs when there is some sort of output sent to the browser even a whitespace. You need to thoroughly check that you are not doing so.
     
    mwasif, Apr 22, 2008 IP