Re: Re: header modify errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

Few things:

1) Check to see if you have any trailing spaces after the end of the file.
2) Check to see if your session_start() is not the first line of the code.


Thanks,
V

On Mon, Dec 15, 2008 at 9:36 AM, Terion Miller <webdev.terion@xxxxxxxxx>wrote:

> On Mon, Dec 15, 2008 at 11:29 AM, Jay Moore <jaymoore@xxxxxxxxxxxx> wrote:
>
> > Terion Miller wrote:
> >
> >> I am working from home today and getting this error with my copy of my
> >> project:
> >> *Warning*: Cannot modify header information - headers already sent by
> >> (output started at
> >> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
> >> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php*
> on
> >> line *3*
> >>
> >> *Warning*: Cannot modify header information - headers already sent by
> >> (output started at
> >> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
> >> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php*
> on
> >> line *4*
> >> Could not connect to the database.
> >>
> >> I have set my php.ini file output_buffering to ON it was off (read in a
> >> past
> >> post that will fix this error--but it did not)
> >> I also set session.cache_limiter =  to nothing it was set to nocache....
> >>
> >> Any other things I'm missing?
> >> Thanks
> >> Terion
> >>
> >>
> > What's on/around line 31 in Welcome.php?
> >
> > J
>
> Line 32-36 are:
> <?php
>    If (!empty($msg)){
>        echo "<div class=\"Error\">". $msg ."</div><BR><BR>";
>    }
> ?>
>
>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux