PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have installed this script but first time try to login
and get this error.
Would some be able to tell me how to fix it please.
Warning: Cannot modify header information - headers already sent by (output started at /home/aussiesh/public_html/sitemonitor/host.config.inc.php:34) in /home/aussiesh/public_html/sitemonitor/login.php on line 29
Warning: Cannot modify header information - headers already sent by (output started at /home/aussiesh/public_html/sitemonitor/host.config.inc.php:34) in /home/aussiesh/public_html/sitemonitor/login.php on line 30
Warning: Cannot modify header information - headers already sent by (output started at /home/aussiesh/public_html/sitemonitor/host.config.inc.php:34) in /home/aussiesh/public_html/sitemonitor/login.php on line 32
augirl wrote:I have installed this script but first time try to login
and get this error.
Would some be able to tell me how to fix it please.
You have 'installed' a script? How so? Into your own?
The problem is line 34 of host.config.inc.php. You shouldn't make output in included files, as it could cause unexpected results if you aren't careful.
augirl wrote:I have installed this script but first time try to login
and get this error.
Would some be able to tell me how to fix it please.
You have 'installed' a script? How so? Into your own?
The problem is line 34 of host.config.inc.php. You shouldn't make output in included files, as it could cause unexpected results if you aren't careful.
Thank for answer but that file only has 31 lines and the includes file is called functions.inc.php is
this where it could be if so could I send you code for you to have a look.
augirl wrote:Thank for answer but that file only has 31 lines and the includes file is called functions.inc.php is
this where it could be if so could I send you code for you to have a look.
No, I don't need you to send me your code. If the file is 31 lines long, then you probably have whitespace at the end. In files that are nothing but PHP code, it is recommended by the standards to omit the closing '?>' tag to avoid that problem. Just remove the closing tag and it should be fine.
Edit: functions.inc.php? You're looking at the wrong file. I told you which one the error said the problem is in.