PHP Download dialog

Discussion in 'PHP' started by Triexa, Apr 20, 2007.

  1. #1
    When I access one file, I eventually get a dialog to download the file, rather than... whatever it outputs to the screen. All other PHP files work just fine. Using firefox, and in the file I also have:

    $maxTime = 60 * 60 * 12; // Max time - 12 hours
    ini_set('max_execution_time', $maxTime);
    set_time_limit($maxTime);
    @ignore_user_abort(1);
    PHP:
    Can anyone explain why it would be doing this?
     
    Triexa, Apr 20, 2007 IP
  2. Weizheng

    Weizheng Peon

    Messages:
    93
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sounds interesting.

    The script shown doesn't do any download dialog. Please post the complete file so we can examine it.
     
    Weizheng, Apr 22, 2007 IP