I'm quite new to PHP and scripting, really need help.
Lately I'm trying to test some scripts (namely xmb and phpBB, popular bulletin board scripts) and frequently run into this problem:
Whenever the program goes to authenticate the user by setting a cookie, I get a warning like this (both for xmb and phpB😎:
Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\phpbb\config.php:2) in c:\program files\apache group\apache\htdocs\phpbb\auth.php on line 254
Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\phpbb\config.php:2) in c:\program files\apache group\apache\htdocs\phpbb\auth.php on line 267
Can anyone please advise?
The scripts used to work, but I don't know what has happened. Is it my MySQL or Apache server? I faced a similar problem on another machine running Apache server on Win2000 (i.e. the scripts worked for a while, then this error crops up. Then I can't login with any username cos I can't set any session cookies)
My machine is running Win98, running Apache 1.3.20 and MySQL 3.23.38 with PHP4.0.5
Please help! I suspect it's a very simple fix cos I hardly did anything and it went from working to not-working in a short time!
Thanks in advance.