Se faccio così mi dice:

Cannot modify header information - headers already sent

Cosa ho sbagliato?

Bye