Re: [PHP-DB] Sessions and Frames
> > -Original Message- > > From: TJayBelt <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > Date: Thursday, October 18, 2001 8:28 AM > > Subject: [PHP-DB] Sessions and Frames > > > > > > >I have a site that is successfully using sessions and authentication. > > >However, I am working on another site, and it uses Frames. > > The first site > > >does not use frames, so including the unit that has the > > session stuff first > > >works. But on the frames site, it gives the following error : > > > > > > 'Cannot add header information - headers already sent by ' > > > > > >I know that this is when something is trying to print before > > the session is > > >started. > > > > > >I just don't know how to accomplish this if the page I am > > loading is inside > > >a frame... so by the time the session stuff starts, html is > > already output > > >to the browser. > > > > > >thanks for any help you can give. My only thought is, where are you trying to start your session in the frames? Are you trying to start the session in the "hidden" frame or in one of the visible frames? If the attempt is in a visible frame then there has already been headers sent to start the "hidden" frame. -- Raquel Finish each day and be done with it. You have done what you could; some blunders and absurdities have crept in; forget them as soon as you can. Tomorrow is a new day; you shall begin it serenely and with too high a spirit to be encumbered with your old nonsense. --Ralph Waldo Emerson -- PHP Database 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]
RE: [PHP-DB] Sessions and Frames
I also suppose that something is printed before Header() function. Suppose, that you have code: I such a case NO BLANK characters are allowed after closing "?>" in included "xxx" file. Newline is enough to produce an error, you have received. Premysl Dedic, Need, a.s. (Quest Group, a.s.) Hybernská 20, Praha 1, +420 2 84000111 tel. +420 2 84000111 fax +420 2 84000101 -- PHP Database 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]
RE: [PHP-DB] Sessions and Frames
The manual says... Remember that the header() function must be called before any actual output is sent, either by normal HTML tags blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that will output before header() is called. The same problem exists when using a single PHP/HTML file. So, an example of what it's complaining about below leads me to believe that you've already written some ouput to the browser which effectively ends any possibility to do any HTTP HEADERS. My guess is that something like this is happening title of page More HTML stuff here ... Whereas the following would be what is acceptable ... title of page More HTML stuff here -- __ _Tyler Nally / /__ _(_)___ _ _ [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> / / _ \/ __ `/ / __ \/ __ \ / __ \/ ___/ __ `/ 317-860-3016 / / __/ /_/ / / /_/ / / / // /_/ / / / /_/ / American Legion Website /_/\___/\__, /_/\/_/ /_(_)/_/ \__, /http://www.legion.org <http://www.legion.org> // // > -Original Message- > From: Dobromir Velev [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] > Sent: Thursday, October 18, 2001 3:50 AM > To: TJayBelt; [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Sessions and Frames > > > Hi, > Every different page in a framset is loaded separatly so the > only thing you > should be aware of is not to output anything before the session stuff. > Also you can use the output control functions lie ob_start - > check the PHP > manual for more info. > > HTH > Dobromir Velev > > -Original Message- > From: TJayBelt <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Date: Thursday, October 18, 2001 8:28 AM > Subject: [PHP-DB] Sessions and Frames > > > >I have a site that is successfully using sessions and authentication. > >However, I am working on another site, and it uses Frames. > The first site > >does not use frames, so including the unit that has the > session stuff first > >works. But on the frames site, it gives the following error : > > > > 'Cannot add header information - headers already sent by ' > > > >I know that this is when something is trying to print before > the session is > >started. > > > >I just don't know how to accomplish this if the page I am > loading is inside > >a frame... so by the time the session stuff starts, html is > already output > >to the browser. > > > >thanks for any help you can give. > > > > > > > >-- > >PHP Database Mailing List ( http://www.php.net/ <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] > > > > > > > -- > PHP Database Mailing List ( http://www.php.net/ <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] > -- PHP Database 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]
Re: [PHP-DB] Sessions and Frames
Hi, Every different page in a framset is loaded separatly so the only thing you should be aware of is not to output anything before the session stuff. Also you can use the output control functions lie ob_start - check the PHP manual for more info. HTH Dobromir Velev -Original Message- From: TJayBelt <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, October 18, 2001 8:28 AM Subject: [PHP-DB] Sessions and Frames >I have a site that is successfully using sessions and authentication. >However, I am working on another site, and it uses Frames. The first site >does not use frames, so including the unit that has the session stuff first >works. But on the frames site, it gives the following error : > > 'Cannot add header information - headers already sent by ' > >I know that this is when something is trying to print before the session is >started. > >I just don't know how to accomplish this if the page I am loading is inside >a frame... so by the time the session stuff starts, html is already output >to the browser. > >thanks for any help you can give. > > > >-- >PHP Database 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] > > -- PHP Database 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]
[PHP-DB] Sessions and Frames
I have a site that is successfully using sessions and authentication. However, I am working on another site, and it uses Frames. The first site does not use frames, so including the unit that has the session stuff first works. But on the frames site, it gives the following error : 'Cannot add header information - headers already sent by ' I know that this is when something is trying to print before the session is started. I just don't know how to accomplish this if the page I am loading is inside a frame... so by the time the session stuff starts, html is already output to the browser. thanks for any help you can give. -- PHP Database 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]