[PHP] Problem with 4.2.3?

2002-11-01 Thread Adam Humphrey
I just upgraded my PHP from 4.2.2 to 4.2.3 and now I have a problem.  Right
now I have some HTML with included PHP.  When the client opens a page with
PHP and HTML it used to (under 4.2.2) display all the HTML before the PHP
and then process the PHP and finally (when processing completed) finish the
rest of the HTML.

This allowed my to do some DHTML to let the user know that the PHP was
processing.  Now with the new version of PHP (4.2.3) when I hit these pages
it will process the PHP before it sends any HTML to the client.

This is really frustrating.  Is there some setting in php.ini that I can
modify to allow the browser to get the HTML before the PHP code?  Or any
other way to get the old behavior?

Any input would be helpful.

Thanks,

Adam
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Problems with Caching

2002-11-18 Thread Adam Humphrey
When I upgraded to 4.2.3 from 4.2.2 I no longer am able to see HTML before
PHP code that takes a while to process.

I made sure that I've set "output_buffering =off" but I still have this
problem.

When I hit the page with the following code on my server, it will wait 10
secs before it displays any of the HTML on the page.  I want it to display
the HTML at the top and then execute the code after the PHP block when the
PHP has finished.  This code worked in 4.2.2 but no longer. :-(

Example code:
Working...

 
DONE!




Does anyone know what setting has caused this code to no longer work like it
did in 4.2.2?

Any input would be helpful.

Thanks,

Adam



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Problems with Caching

2002-11-18 Thread Adam Humphrey
Thanks for your help both Maxim and Marek...everything's working now!

-Adam

"Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> try calling implicitly flush() function:
>
>
> Example code:
> Working...
>  flush();
> sleep ( 10 );
> ?>
>
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
>
>
>
> "Adam Humphrey" <[EMAIL PROTECTED]> wrote... :
>
> > When I upgraded to 4.2.3 from 4.2.2 I no longer am able to see HTML
before
> > PHP code that takes a while to process.
> >
> > I made sure that I've set "output_buffering =off" but I still have this
> > problem.
> >
> > When I hit the page with the following code on my server, it will wait
10
> > secs before it displays any of the HTML on the page.  I want it to
display
> > the HTML at the top and then execute the code after the PHP block when
the
> > PHP has finished.  This code worked in 4.2.2 but no longer. :-(
> >
> > Example code:
> > Working...
> >  > sleep ( 10 );
> > ?>
> >  
> > DONE!
> > 
> > <!--
> >  show.style.display='';
> >  hide.style.display='none';
> > //-->
> > 
> >
> > Does anyone know what setting has caused this code to no longer work
like it
> > did in 4.2.2?
> >
> > Any input would be helpful.
> >
> > Thanks,
> >
> > Adam
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php