Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z header
Manwe89
post 29.04.2009, 12:41:18
Post #1





Grupa: Zarejestrowani
Postów: 81
Pomógł: 3
Dołączył: 28.10.2008
Skąd: Łuków

Ostrzeżenie: (0%)
-----


Witam. Mam cos takiego:
  1. <?php
  2.    $length=filesize('xxx/aaa.zip');
  3.  
  4.    header('Content-type: application/zip');
  5.    header('Content-Disposition: attachment; filename="pir2009.zip"');
  6.    header("Content-Length: " . $length);
  7.    readfile('xxx/aaa.zip');
  8. ?>


dziala na ff2, chrome, opera 9. nie dziala na IE 6,7,8 i ff3 sad.gif wie ktos dla czego??
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Darti
post 29.04.2009, 12:52:45
Post #2





Grupa: Zarejestrowani
Postów: 1 076
Pomógł: 62
Dołączył: 6.03.2005
Skąd: Wroc

Ostrzeżenie: (0%)
-----


http://pl2.php.net/manual/pl/function.header.php#81045


--------------------
The answer is out there, Neo. It's looking for you. And it will find you, if you want it to.
SERVER_SOFTWARE : Apache/2.2.4 (Win32) PHP/5.2.1
MySQL Client API version : 5.0.27
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 02:57