I have red the last post regarding an error with "headers" and I have one similar to this.
All my script works correctly, users can register new domains, view stats, send a message form "contact", ... etc. But, I have included the file "members.php" into another php file, and when I load this page I can enter a domain and password, script execute "?do=main" correctly and show main page and this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/mundopc/public_html/webmasters/redirect/members.php:2) in /home/mundopc/public_html/webmasters/redirect/myred/include/functions.php on line 250
As you can see, It is an error similar to the last post but in this case, the file is functions.php on line 250.
Well, if you ignore this error and continue navigating, you cannot do it, because any link that you click, always go to login page (to enter again the domain and password)
I have been searching in this file (functions) and this line is to Set Cookie. It seems like if this cookie could not be inserted or installed, but if I execute the file members.php (from myred directory) directly, I can login and click on any link without errors.
In this case, If I deactive cookies on my browser, the effect is the same, you can enter to main page, but whe try to click on any link, goes to login page again.
The question is why cookies are installed correctly when I load members.php directly and they could not install when I load members.php through another php file, that include members.php.
I hope you understand this explanation and can suggest something to solve it.
Thanks.

Fernando
Spain