PHP- How to get rid of the download dialog box ??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tanyali
    New Member
    • Feb 2007
    • 43

    PHP- How to get rid of the download dialog box ??

    I am using Linux Red Hat & php5

    my page is to display records selected form database( mysql-5 )
    and download BLOB files, when "download here" clicked, a download dialog box always comes out for confirmation.

    I need download loads of BLOB files, and do not need that download dialog box, anybody knows how to get rid of it ?? please help

    I have blocked all popups and tried in Firfox, Netscape, Mozilla... but it did not work.


    to download BLOB file,this is the code I used :
    /* */
    if(mysql_num_ro ws($result) == 1)
    {
    $fileContent = @mysql_result($ result,0,"gdata ");

    header("Content-Type: application/octet-stream");
    header("Content-Disposition: attachment;file name=$gribname" );

    echo $fileContent;
    }

    else
    {
    echo "Record does not exist.";
    }
    /* */
Working...