[PHP] ob_start session_start

2005-12-07 Thread Joe Harman
Hello, Something just crossed my mind about using output buffering is there any reason why you should start a session before calling ob_start() ??? Just curious which way would be the proper way of doing it... or doesn't it matter? Thanks -- Joe Harman - * My programs never have

Re: [PHP] ob_start session_start

2005-12-07 Thread Joe Harman
Okay.. makes sense after you spelled it out to me... LOL... I always start my session first.. so, that must why i have never had any problems Cheers Thanks! Joe On 12/7/05, Zack Bloom [EMAIL PROTECTED] wrote: yes, it will display the content in the buffer before creating the session. If your

Re: [PHP] ob_start session_start

2005-12-07 Thread Chris Shiflett
Joe Harman wrote: Okay...makes sense after you spelled it out to me. That didn't make sense to me (and I missed the original reply). Mind elaborating? :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] ob_start session_start

2005-12-07 Thread Zack Bloom
Sure, ob_start begins a buffer allowing you to display content in the browser before your script has finished executing. This is useful when loading a time intensive page to tell the user to wait. When you create a session (provide php is not configured otherwise) php attempts to store a cookie

Re: [PHP] ob_start session_start

2005-12-07 Thread Joe Harman
I guess this was just out of general curiousity... If you started 'session_start()' after 'ob_start()' would the sessions work correctly? k.. maybe I am still confused... lol... I normally do session_start() before the ob_start()... Zack Said : 'yes, it will display the content in the buffer

Re: [PHP] ob_start session_start

2005-12-07 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 01:23:40AM -0500, Joe Harman wrote: So, the question is really... in what order is the best way to do this... I would think that you always want to start a session first... but then again, you guys are the experts... i am sure someone knows a reason when you should

Re: [PHP] ob_start session_start

2005-12-07 Thread Chris Shiflett
Zack Bloom wrote: Sure, ob_start begins a buffer allowing you to display content in the browser before your script has finished executing. Calling ob_start() turns on PHP's output buffering. In other words, it buffers output from the moment this function is called until the buffer is flushed

Re: [PHP] ob_start session_start

2005-12-07 Thread Zack Bloom
I have never tried it but if it did work i doubt it would use cookies, it would probably pass it in the addresses or throw an error. On 12/8/05, Joe Harman [EMAIL PROTECTED] wrote: I guess this was just out of general curiousity... If you started 'session_start()' after 'ob_start()' would the

Re: [PHP] ob_start session_start

2005-12-07 Thread Zack Bloom
Sorry it looked like the rest of your email was part of the previous one. To answer your question it is better to call session_start() before ob_start() On 12/8/05, Zack Bloom [EMAIL PROTECTED] wrote: I have never tried it but if it did work i doubt it would use cookies, it would probably pass