Warning: Cannot modify header information...

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

Re: Warning: Cannot modify header information...

Post by kladrian » Thu Aug 14, 2014 11:25 am

hi,

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)

---
kladrian

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests