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ę (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
tiraeth
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 789
Pomógł: 41
Dołączył: 30.10.2003
Skąd: Wrocław

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


Zawsze możesz ustawić buforowanie danych przed wyświetleniem...

ob_start" title="Zobacz w manualu php" target="_manual()
ob_end_flush" title="Zobacz w manualu php" target="_manual()
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: 4.10.2025 - 09:34