Warning: Cannot modify header information...

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 12
Joined: Thu Aug 14, 2014 1:13 am

Thu Aug 14, 2014 11:25 am


first of all it's best practice to remove '?>' at the end of each php file or ... maybe it's better to say that is malpractice to write '?>' at the end of the file :)

then the problem is not the path of the header but something else before.

This is a well know error that means you are trying to modify header information when there is already an output.
The output could be a warning, a notice or even single white space left at the end of included file (that's the reason why it's malpractice to leave '?>' at the end of the file)


Post Reply
  • Information
  • Who is online

    Users browsing this forum: Google [Bot], KH35 and 1 guest