Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] pobieranie plików
Patricco90
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 17.03.2014

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


@Witam

pobieram pliki na stronie:
  1. $file = 'test.docx';
  2.  
  3. if (file_exists($file)) {
  4. header('Content-Description: File Transfer');
  5. header('Content-Type: application/octet-stream');
  6. header('Content-Disposition: attachment; filename="'.basename($file).'"');
  7. header('Expires: 0');
  8. header('Cache-Control: must-revalidate');
  9. header('Pragma: public');
  10. header('Content-Length: ' . filesize($file));
  11.  
  12. readfile($file);
  13. }





Problem mam z tym, ze chce pobrac za jednym razem podobnych plików 3, jak coś takiego można wykonać? nie tworząc większej ilosci przycisków
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 24.12.2025 - 14:59