> header("Content-type: application/zip");
> header("Content-Disposition: attachment; filename=yourfilename.zip");
> readfile("/path/to/yourfilename.zip");
>

I have found that to make sure it works with all browsers you want to put
quotes around the filename in the content-disposition header.

header( "Content-tpye: application/zip" );
header( "Content-Disposition: attachment; filename=\"yourfile.zip\" );
readfile( "/path/to/yourfilname.zip" );

the reason I say this is because without the quotes, some browsers insert
a "[1]" or something similar without them.

Alex

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to