From: Michael L. <ml...@sa...> - 2003-11-19 21:02:14
|
The first line is: header("Content-type: text/html; charset=".$lang_charset); The sec.ond line is: setcookie ("IMAIL_TEST_COOKIE", "test", time()+$MAX_SESSION_TIME, "/", $_SERVER[SERVER_NAME]); The problem, is apparently a familiar one when running PHP as a CGI binary. The header() MUST come at the top of the document, right after #!/usr/local/bin/php And the problem is that there are several includes that try to call headers as well. And they are all in conflict with each other. The problem is further complicated by the fact that apparently, you can't set cookies inside includes, when running PHP as a CGI binary. So, when I erase the cookies statements, erase the header statements in the includes, and move the header() statement in index.php to the top, all the errors go away. but of course then, the page stops working. ---- Michael Lee E-mail: ml...@sa... On Wed, 19 Nov 2003, Ryo Chijiiwa wrote: > Can you send us your modified index.php? The line numbers in the error > messages don't correspond to related code in the original release > files, so it's hard to tell what might be causing problems. > > Thanks, > Ryo > > On 11/19/2003, "Michael Lee" <ml...@sa...> wrote: > > > > > > >Hello. > > > >First off... IlohaMail is an AWESOME application. I've been using it for a > >few months now, and have been very happy with it. > > > >However, I now have a problem. I moved it to a new server which I don't > >have root access to. The owner of the server is only willing to run PHP as > >a CGI binary. > > > >So I went ahead and put a #!/usr/local/bin/php in the first line of > >index.php and did a chmod 755 on it. > > > >And yes, /usr/local/bin/php does exist. > > > >Now, when I access the page (index.php), I see this coming up on the page: > > > >#!/usr/local/bin/php -q > >Warning: Cannot modify header information - headers already sent by > >(output started at > >/home1/mlee/www/IlohaMail-0.8.10/IlohaMail/source/index.php:4) in > >/home1/mlee/www/IlohaMail-0.8.10/IlohaMail/source/index.php on line 67 > > > >Warning: Cannot modify header information - headers already sent by > >(output started at > >/home1/mlee/www/IlohaMail-0.8.10/IlohaMail/source/index.php:4) in > >/home1/mlee/www/IlohaMail-0.8.10/IlohaMail/source/index.php on line 323 > > > >I tried googling for clues, but couldn't find any. Has anyone else > >encountered this? Am I missing something simple (is this a dumb question)? > >Any help would be greatly appreciated. THANKS!!! > > > >---- > >Michael Lee > >E-mail: ml...@sa... > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SF.net Giveback Program. > >Does SourceForge.net help you be more productive? Does it > >help you create better code? SHARE THE LOVE, and help us help > >YOU! Click Here: http://sourceforge.net/donate/ > >_______________________________________________ > >Ilohamail-users mailing list > >Ilo...@li... > >https://lists.sourceforge.net/lists/listinfo/ilohamail-users > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Ilohamail-users mailing list > Ilo...@li... > https://lists.sourceforge.net/lists/listinfo/ilohamail-users > |