Hallo liebe Community,
ich möchte per Heide eine ZIP Datei zum Download bereitstellen. So sieht der Code aus:
PHP
header("Content-Type: application/zip");header('Content-Disposition: attachment; filename="Archiv"'); if (!headers_sent()) {readfile('secure.zip'); }
Doch es kommt der Error, woran liegt dass? Wo ist mein Fehler?
Code
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web1/html/secure.php:4) in/var/www/web1/html/secure.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web1/html/secure.php:4) in/var/www/web1/html/secure.php on line 10