Results 1 to 4 of 4

Thread: Stop IE automatically opening CSV files

  1. #1

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Stop IE automatically opening CSV files

    How do I stop IE from automatically opening CSV files in a new browser and instead give the option to save to disc?

  2. #2
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: Stop IE automatically opening CSV files

    well, the only way i know how to do this is by using a scripting language like PERL, PHP, ASP, JSP, exc...

    for php use this:
    PHP Code:
    <?php 
    $file 
    'path/your_file.xxx'
    header('Content-Type: application/x-download'); 
    header('Content-Disposition: attachment; filename=' $file); 
    print 
    file_get_contents($file); 
    ?>
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  3. #3

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Re: Stop IE automatically opening CSV files

    thanks, but im sure theres a setting on the users pc rather tahn through code, any ideas anyone?

  4. #4
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: Stop IE automatically opening CSV files

    i did a search in the registry, and found nothing!

    did you try that first seggestion?
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

Posting Permissions

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



Click Here to Expand Forum to Full Width