Witam,
Jeszcze tydzień temu wszystko działało gdy nagle pojawił mi się taki błąd przy ekspoprcie danych ze strony do excela. Strona ta w ogóle nie powinna się ładować tylko od razu pobierać excela.
Proszę o pomoc.
Błąd:
Warning: Cannot modify header information - headers already sent by (output started at /home/print/excel.php:2) in /home/print/excel.php on line 183
Warning: Cannot modify header information - headers already sent by (output started at /home/print/excel.php:2) in /home/skb/print/excel.php on line 184
Numery linijek z błędem:
header('Content-Type: application/xls');
header('Content-Disposition: attachment; filename=Raport-cala-baza-'.date('Y-m-d H_i').'.xls');