FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Order/Timing of Execution of PHP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Order/Timing of Execution of PHP [message #176153 is a reply to message #176152] Sun, 27 November 2011 14:14 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Sun, 27 Nov 2011 12:01:47 +0000, Jeff Gaines wrote:

> It works but doesn't echo 'Creating Thumbnails' etc. until it has called
> the function and returned from it.

Possibly caused by buffering on the server, or even the client waiting to
render output until it's able to decide what is to be rendered and how?

I think it's better to do all the processing first, and then send the web
page afterwards, rather then send html in dribs and drabs while you're
doing the processing. This isn't the way I used to think, but it has
advantages. For example, you can trap and react to errors in the
processing by issuing http error headers, which you can't do if you've
started output.

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Associative Array
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 08:53:59 GMT 2024

Total time taken to generate the page: 0.04135 seconds