Re: ob_start problem

From: Date: Sat, 22 Mar 2003 06:02:46 +0000
Subject: Re: ob_start problem
Groups: php.general 
Request: Send a blank email to php-general+get-140668@lists.php.net to get a copy of this message
That is what I thought, but it isnt.. after doing some testing it seems to only do it the first time the page is loaded in the session, if i hit refresh then the problem doesnt occur. is it possible that it has anything to do with the session_start and session_name that is used at the top of the page before the ob_start is called? > *guess* you're including the footer twice, or are calling ob_end_flush() > more than once..... > > not anywhere near sure though!! > > Justin > > 21/03/03 11:33 PM, Mr Percival (mrpercival@cheerful.com) wrote: > > > Hi, > > > > I have a page that has an include at the top of the page and an include at the > > bottom of the page. > > > > in the top include file I have added the command: > > > > ob_start("ob_gzhandler"); > > in the bottom include I have added: > > > > ob_end_flush(); <-- i thought this was supposed to be run to clean up at the > > end of the page. > > > > Most of the time everything is fine, but on occasions it will give an > > "warning" error: > > > > Warning: ob_gzhandler() [ref.outcontrol]: output handler 'ob_gzhandler' cannot > > be used twice in /blahblah/includes/bottom.inc on line 25 > > > > line 25 is the line > > ob_end_flush(); > > > > I dont understand why it only comes up sometimes and what I am doing for that > > to happen, can anyone help me? > > > > Thanks! :)) > -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup

« previous php.general (#140668) next »