- Kod: Zaznacz cały
$filename = "test";
$ext = 'zip';
$mime_type = 'application/x-gzip';
// Send headers
header('Content-Type: ' . $mime_type);
if (PMA_USR_BROWSER_AGENT == 'IE') {
header('Content-Disposition: inline; filename="' . $filename . '.' . $ext . '"');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
}
else {
header('Content-Disposition: attachment; filename="' . $filename . '.' . $ext . '"');
header('Expires: 0');
header('Pragma: no-cache');
}
$fp = fopen ("/tmp/cos.zip", "r");
$buffer = fread ( $fp,filesize("/tmp/cos.zip") );
echo $buffer;
mozilla uparczywie zapisuje to jako test.zip.php
Prosze o informacje jak to naprawic posiadana wersja mozilli to: 1.3a Gecko/20021130 eng.[/code]