ZIP Downloads as directory (PHP)

Discussion in 'PHP' started by onehundredandtwo, Jun 7, 2009.

  1. #1
    After a lot of searching, I've come here.

    Basically, I need a ZIP file to download through PHP.

    In Firefox, making the download script in a /download.zip/?id=6&file=download.zip format made it work, however, no such luck in IE, instead it says "Unknown File".

    Any ideas?
    onehundredandtwo.
     
    onehundredandtwo, Jun 7, 2009 IP
  2. onehundredandtwo

    onehundredandtwo Guest

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Never mind, just found the answer.

    header('Content-Disposition: attachment; filename="yourfilename.zip"');
     
    onehundredandtwo, Jun 7, 2009 IP