Re: [PHP] Setting the name of a file in a download....

2002-04-23 Thread Richard Archer
At 3:59 PM +1000 23/4/02, Brian White wrote: Is there any way to get it to save as a file called file.zip? Is there any header I can set? The headers it currently returns header(Content-type: application/octet-stream; name=\file.zip\); header(Content-Disposition: attachment;

[PHP] Setting the name of a file in a download....

2002-04-22 Thread Brian White
I am using the following code to create a downloader. It works, except that IE will just dump the contents to it's browser and Netscape 4 asks if I want to save it in a file called blah.php. // File: blah.php if ( ! $fp = fsockopen (www.steptwo.com.au, 80, $errno, $errstr, 30) )