Site monitor script error

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!

Moderator: General Moderators

Post Reply
augirl
Forum Newbie
Posts: 6
Joined: Sat Aug 18, 2007 9:24 am

Site monitor script error

Post by augirl »

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

Thank you :roll:
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: Site monitor script error

Post by superdezign »

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
Forum Newbie
Posts: 6
Joined: Sat Aug 18, 2007 9:24 am

Re: Site monitor script error

Post by augirl »

superdezign wrote:
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.

Thank you :roll:
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: Site monitor script error

Post by superdezign »

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.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

We should keep some sort of counter to determine exactly how many times per week this question is asked without searching first.
augirl
Forum Newbie
Posts: 6
Joined: Sat Aug 18, 2007 9:24 am

Re Error

Post by augirl »

Hi Superdesign

Thank you very much for you help ir is now functioning well

Take Care :roll:
Post Reply