This question has already been answered:

Warning: Cannot modify header information - headers already by (output started at Z: \ home \ race.mobi \ www \ index.php: 30)

What is this mistake?

Reported as a duplicate by participants of ReinRaus , AK , Vadim Ovchinnikov , Alexey Shimansky , aleksandr barakin Jan 6 '17 at 21:46

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • header must be used before any output to the browser - vinnie
  • Why not google it? ------------ IMHO Denwer junk - Palmervan
  • What does Denver have to do with it? - iproger
  • nothing to do but trash anyway) - thunder

2 answers 2

This error occurs if there is something displayed before the call to header. If you are sure that nothing is output to the header, then most likely this is a BOM. Then try saving the file in UTF-8 without BOM encoding in Notepad ++. Or remove the pens in WinHEX.

  • thank! I have to display up! - phpoma

Warning: Cannot modify header information - headers already by (output started at Z: \ home \ race.mobi \ www \ index.php: 30) in Z: \ home \ race.mobi \ www \ index.php on line 46

transfer

Warning: I can not modify the title - the headers have already been sent (the output began in: \ home \ race.mobi \ www \ index.php: 30) in Z: \ home \ race.mobi \ www \ index.php on line 46.