Content type for ZIP format
Results 1 to 3 of 3

Thread: Content type for ZIP format

  1. #1
    asp.net vs. php.net
    Join Date
    Feb 2003
    Location
    middle of the red wood trees
    Posts
    205

    Content type for ZIP format

    what's the content-type for ZIP format as well as tar.gz?



    e.g. GIF files has a content-type of IMAGE/GIF


    thanks in advance!

  2. #2
    Senior Member
    Join Date
    Nov 2002
    Posts
    186
    PHP Code:
    header("Content-type: application/octet-stream");
    header("Content-disposition: attachment; filename=test.zip"); 

  3. #3
    asp.net vs. php.net
    Join Date
    Feb 2003
    Location
    middle of the red wood trees
    Posts
    205
    thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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