On Tue, 2002-12-17 at 19:08, R. Stavros Bezas wrote:
> I have been observing the mailstring for a few days and done some
> searching through the archives and have yet to see a fix for the
> following errors when I access webpage.com/squirrelmail/
> :
>  
> Warning: Cannot add header information - headers already sent by
> (output started at /htdocs/squirrelmail/src/global.php:2) in
> /htdocs/squirrelmail/functions/i18n.php on line 1195
> 
<snip>
> 
>__________________________________________________________________________________________________________________________________________________________________
>  
> If anyone can shed any light on this situation I would REALLY
> appreciate it! I am running openbsd 3.2, php 4.2.3 and apache 1.3.26.
> Thanks alot!
>  

This is a standard PHP error, due to the nature of web browsers and the
HTTP standard. Basically, your server is telling you that it can't send
any HTTP headers to your browser, because it has already sent something
it interprets as the body of the web page.

Squirrelmail uses sessions to "remember" your login from page to page,
among other things. PHP sends a cookie to your browser to keep track of
which browser (among all the possible browsers that could connect to
your server). Cookies must be sent to the browser in the header, rather
than the body of the page. This error basically says that some
non-header text went out before the cookies...

The error message tells you where to look. Open up
/htdocs/squirrelmail/src/global.php, and look on line 2. This is where
output of the web page started, and the point that PHP determined it
could no longer send headers.

The first four lines of my global.php looks like this:

<?php

/**
 * globals.php

Does yours?

There should be no space between the beginning of the file and the
opening bracket of the line "<?php". If there's anything before that,
delete it and try again.

Good luck,
-- 
John Locke
http://www.freelock.com



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to