Hi I have big problem with headers which I send to www browser: IE 5.5 and Netscape 6.2. On my web site I have PHP script to download huge text files to client side. The text file is compressed by gzip program before it will be downloaded to client. My problem is how to send to www browser correct headers to download gziped file for example "text.gz" and force www browser to store this file with name "text.gz". I tested sending headers like below, but it work only with IE 5.5. Using Netscape 6.2 downloaded file should be stored as "text.gz" but is stored as name of the PHP script. There is PHP code with headers I send to www browser:
header( 'Content-Encoding: zip'); header( 'Content-Length: ' . $file_size ); header( 'Content-Location: ' . $file_gz ); header( 'Content-Type: application/octet-stream' ); header( 'Content-Type: application/zip' ); //header( 'Location: ' . $file_gz ); header( 'Content-Disposition: filename=' . $short_file_gz ); Thank You for any suggestions. Krzysiek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php