Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z header(), wywala mi błąd
eko_moto
post
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 8.01.2006
Skąd: z Wawy

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


Mam problem z header():

Kod
Warning: Cannot modify header information - headers already sent by (output started at /mnt/storage/users/f/o/r/forum3a/linker/index.php:52) in /mnt/storage/users/f/o/r/forum3a/linker/index.php on line 53


mam taki kod:

  1. <?php
  2. $f_de=base64_decode($addr);
  3. $dl_n=$f_de;
  4.  
  5. header("Content-Type: application/octet-stream");
  6. header("Content-Disposition: attachment; filename=$dl_n");
  7. header("Content-Length: ".filesize($dl_n));
  8. header("Accept-Ranges: bytes");
  9. header("Pragma: no-cache");
  10. header("Expires: 0");
  11. header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  12. header("Content-transfer-encoding: binary");
  13.  
  14. @readfile($dl_name);
  15.  
  16. exit();
  17. ?>


wywala mi ten błąd oczywiście po wykonaniu skryptu

coś źle piszę questionmark.gif


--------------------
<span style="font-style: italic;">"Kto nie dąży do rzeczy niemożliwych, nigdy ich nie osiągnie."
<span style="font-weight: bold;">Heraklit</span></
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 22.08.2025 - 05:48