Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php][mysql] Generowanie pdf-ów, Serwer zwraca komunikat błędu
kaflo
post
Post #1





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 11.03.2007

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


Warning: Cannot modify header information - headers already sent by (output started at /home/c/ce-www/public_html/serwis/index.php:10) in /home/c/ce-www/public_html/serwis/fpdf.php on line 1022
FPDF error: Some data has already been output to browser, can't send PDF file

Po wygenerowaniu pliku zwracany jest powyższy błąd. Podejrzewam że wynika to z ustawień serwera wie ktoś może jak sobie poradzić z tym problemem?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kaflo
post
Post #2





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 11.03.2007

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


Zwraca taki komunikat błędu:
Warning: Cannot modify header information - headers already sent by (output started at /home/c/ce-www/public_html/serwis/komunikat.php:8) in /home/c/ce-www/public_html/serwis/fpdf.php on line 1023
FPDF error: Some data has already been output to browser, can't send PDF file
Z pliku komunikat.php o kodzie źródłowym:
  1. <html>
  2. <head>
  3. <title>Próba</title></head>
  4. <body>
  5.  
  6.  
  7.  
  8. <?php
  9. require('fpdf.php');
  10.  
  11. $pdf=new FPDF();
  12. $pdf->AddPage();
  13. $pdf->SetFont('Arial','B',16);
  14. $pdf->Cell(40,10,'Hello World!');
  15. $pdf->Output();
  16.  
  17. ?>
  18.  
  19. </body></htm>
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: 9.10.2025 - 11:09