Kurt G formulerede mandag:
Prøv at læse hvad der står i fejlmeddelelsen. Noget med at header
allerede er sendt, ikke?
Først siger du at det er text/html, derefter at det er application/pdf.
Læs manualen:
Remember that header() must be called before any actual output is sent,
either by normal HTML tags, blank lines in a file, or from PHP. It is a
very common error to read code with include, or require, functions, or
another file access function, and have spaces or empty lines that are
output before header() is called. The same problem exists when using a
single PHP/HTML file.
<html>
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location:
http://www.example.com/');
exit;
?>
Det er jo nogenlunde det, du gør.
Det er ganske let at søge efter php:
I chrome f.ex. skriv "
php.net header" i adressefeltet.
> Nogen med et godt tip?
RTFM :-)
--
https://www.paradiss.dk
Ting til konen eller kæresten.
Eller begge.