Hi, It can be caused by quite common mistake - any extra space (or characters like LF or CR) before or after <?php ?> in php file! Such characters are automaticly sent to the browser - and before it - all headers are sent - and we've got described error.
I don't have this moment access to the online php manual - but as I remember this common error is described there. Let mew know if it has helped you to solve the problem Greetings Piotr --- Mike Flynn <[EMAIL PROTECTED]> wrote: > Which session library files do you mean? Sessions > should never create the > headers -- there's no reason for them to do so. > There's nothing in the > page itself that sessions need care about and > nothing they can affect / be > affected by. Are you sure that the headers aren't > coming from somewhere > else? A bit of extranneous code you've written / a > pre-existing error message? > > I use sessions all the time and header redirections > work fine.. > > -Mike > > At 11:50 AM 11/30/2001 +0100, Martin.Andrew wrote: > > >Is there another function that does the same job as > Header() > > > >I'm creating a forum, and when a user sends a > message I call a function that > >checks name, password etc, then updates the DB and > then calls the Header > >function to redirect the page. > > > >This would be fine except I am also using session > library files that have > >the html headers already created, thus, while the > redirects (it still > >redirects) I get the standard > >Warning: Cannot add header information - headers > already sent by .... > >message, I know where the problem is but can't > solve it without changing > >many function of the forum functionality. > > > >I have tried using plain javascript and this does > work but there is again a > >split second delay that is very annoying. > > > >Thanks. > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]