SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist jazztie's Avatar
    Join Date
    Mar 2001
    Location
    the Netherlands
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Strange header problem

    This post is also connected to the following post

    I have a problem with the following statement:


    PHP Code:
    header("Content-Type: application/octet-stream");
           
    header("Content-Disposition: attachment; filename=\"relaties $date.csv\"");
          print 
    $data
    When used under Windows 2000 pro (maybe also under different platforms) this provides me with a problem:

    First it asks to 'save as' the window that links to the page with the 'header'-code... when I click 'open from current location' it asks to 'save as' the window that has the 'header'-code... when I click 'open from current location' it finally ask to 'save as' relaties 23082001.csv.

    What is wrong here? I don't have this problem under Windows98.
    What should I change?

    Jazz

  2. #2
    code addict Abstraction's Avatar
    Join Date
    Apr 2001
    Location
    Des Moines, IA
    Posts
    346
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Someone correct me if I'm wrong, but it's not a code issue, it's an issue with how your browser is set up.

  3. #3
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just posted a eply in the original thread.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

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