1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Problems with the extension by saving files

Discussion in 'Firefox, Thunderbird & SeaMonkey' started by ChicoBoy, 2006/01/23.

  1. 2006/01/23
    ChicoBoy

    ChicoBoy Inactive Thread Starter

    Joined:
    2006/01/23
    Messages:
    2
    Likes Received:
    0
    Hey all!!
    I want to save a csv-file and save them by using the following php-code:

    Code:
    <?
     header( "Content-disposition: attachment; filename=My_File.csv);
       header( "Content-type: application/octest-stream ");
       header( "Pragma: no-cache ");
       header( "Expires: 0 ");           
    
    for($i=0;$i<10;$i++){
       echo  "number,\" $i \ ", \ "blabla \ "\n ";
    }
    ?>
    
    With Firefox und MIE it works perfectly and you can save the file 'My_File.csv'.

    But in Netscape7.1 the download-menu showed 'My_Datei.csv.php' instead of 'My_Datei.csv' .
    So i allways have to remove this '.php' at the end of the string in the save-dialog.

    Why does Netscape allways add this php-extension??

    I allready searched in google about this problem, i only found several people who got the same problem but no solutions yet.

    Thanks in advance for any help!
     
  2. 2006/01/23
    Westside

    Westside Inactive Alumni

    Joined:
    2003/03/30
    Messages:
    4,506
    Likes Received:
    14
    My, simple minded, solution is to do away with NS7.1. I recall that some earlier Netscape used to add stuff to the download. It is my recollection that 7.2 had no longer the problem, should you wish to stick to Netscape.
    I simulated what you described, and if selected All Files, it saved with desired name, using 7.2.
     

  3. to hide this advert.

  4. 2006/01/23
    Ramona

    Ramona Geek Member Alumni

    Joined:
    2001/12/31
    Messages:
    7,481
    Likes Received:
    2
    Welcome to the Forum, ChicoBoy!

    ChicoBoy,

    The extra extension on the file is one of the many bugs in Netscape 7.1.
     
  5. 2006/01/24
    ChicoBoy

    ChicoBoy Inactive Thread Starter

    Joined:
    2006/01/23
    Messages:
    2
    Likes Received:
    0
    Thank oyu both for the fast reply...

    I allready recommend the customers who are using my 'tool' to install firefox, IE, or just to upgrade Netscpae to e newer version...

    Thanks a lot..
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.