[PHP] (SOLVED)Re: [PHP] setting the name of the file in Save As windows

2001-04-26 Thread Black Dragon
> I've tried unsuccesfully to print this header after the first header: > > header ("Content-Disposition: attachment; filename=\"WorkPlease.zip\""); > It works using: header("Content-Disposition: filename=\"WorkPlease.zip\""); I think my browser is a bit mad :) the rrf http://www.w3.org/Prot

[PHP] setting the name of the file in Save As windows

2001-04-26 Thread Black Dragon
Hi! I've done a program that send a zip file to browser. I read it on server using fopen because I've it in a private area (I can't send it directly). Now I send it to browser in this way: header ("Content-type: application/x-zip-compressed"); $fd = fopen ($filename, "r"); $data = fread( $