Re: [PHP] way to insert timer / pause?

2003-01-03 Thread Gerald Timothy Quimpo
On Friday 03 January 2003 10:56 am, Jeff Bluemel wrote:
 if there a command, or a way I can put say a 5 second, or a 10 second pause
 which will make it so it will output x amount of html, and then continue?
 or if I can pause it will it not display any of the html until the entire
 script has ran?

that depends on a few things.  output buffering (manual or automatic)
may block immediate output of text or HTML.

tables get displayed when the whole table has been received by the
browser. so you can't show parts of a table.  tables within tables
will get displayed only when the outermost table is complete.

there may also be quirks in browsers, proxies or servers that affect
this, but i don't know any details.

tiger

-- 
Gerald Timothy Quimpo  tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph
Public Key: gpg --keyserver pgp.mit.edu --recv-keys 672F4C78
   Veritas liberabit vos.
   Doveryai no proveryai.

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




Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Michael J. Pawlowsky

I'm not sure I totally understand... but...

to pause...  sleep(10);  i.e. 10 second pause Everything stops...  not just output

you can buffer everything and only output it when you want

look at ob_start

But a warning...  your server or the clients might change the expexted behaviour.


Mike



*** REPLY SEPARATOR  ***

On 02/01/2003 at 7:56 PM Jeff Bluemel wrote:

if there a command, or a way I can put say a 5 second, or a 10 second
pause
which will make it so it will output x amount of html, and then continue?
or if I can pause it will it not display any of the html until the entire
script has ran?



--
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




Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Andrew Brampton
I beleive you can use output buffering to stop anything from being displayed
until the very last moment. Or you can code your page with tables. I know IE
wont' render a table until the last /table (I beleive), so this could stop
your html from showing.

Or if there is going to be a long pause, you could make a intermediate page
that displays this will take minute. This page would have a meta refresh
that keeps refreshing itself checking the status of your job. Once the job
is complete on the next refresh it will notice the job is done and voila
display the results.

Andrew
- Original Message -
From: Jeff Bluemel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 2:56 AM
Subject: [PHP] way to insert timer / pause?


 if there a command, or a way I can put say a 5 second, or a 10 second
pause
 which will make it so it will output x amount of html, and then continue?
 or if I can pause it will it not display any of the html until the entire
 script has ran?



 --
 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




RE: [PHP] way to insert timer / pause?

2003-01-02 Thread SED
Sure, just read the following:

http://www.php.net/manual/en/function.sleep.php

As a reply for your second question, you can always assign the output to
a variable and echo the variable in the end of the script.


Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is

-Original Message-
From: Jeff Bluemel [mailto:[EMAIL PROTECTED]] 
Sent: 3. janĂșar 2003 02:57
To: [EMAIL PROTECTED]
Subject: [PHP] way to insert timer / pause?


if there a command, or a way I can put say a 5 second, or a 10 second
pause which will make it so it will output x amount of html, and then
continue? or if I can pause it will it not display any of the html until
the entire script has ran?



-- 
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




Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
thanks Sed

Sed [EMAIL PROTECTED] wrote in message
014d01c2b2d7$86935330$fe78a8c0@mamma">news:014d01c2b2d7$86935330$fe78a8c0@mamma...
Sure, just read the following:

http://www.php.net/manual/en/function.sleep.php

As a reply for your second question, you can always assign the output to
a variable and echo the variable in the end of the script.


Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is

-Original Message-
From: Jeff Bluemel [mailto:[EMAIL PROTECTED]]
Sent: 3. janĂșar 2003 02:57
To: [EMAIL PROTECTED]
Subject: [PHP] way to insert timer / pause?


if there a command, or a way I can put say a 5 second, or a 10 second
pause which will make it so it will output x amount of html, and then
continue? or if I can pause it will it not display any of the html until
the entire script has ran?



--
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




Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
thanks for the reply Mike...

Jeff
Michael J. Pawlowsky [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 I'm not sure I totally understand... but...

 to pause...  sleep(10);  i.e. 10 second pause Everything stops...  not
just output

 you can buffer everything and only output it when you want

 look at ob_start

 But a warning...  your server or the clients might change the expexted
behaviour.


 Mike



 *** REPLY SEPARATOR  ***

 On 02/01/2003 at 7:56 PM Jeff Bluemel wrote:

 if there a command, or a way I can put say a 5 second, or a 10 second
 pause
 which will make it so it will output x amount of html, and then continue?
 or if I can pause it will it not display any of the html until the entire
 script has ran?
 
 
 
 --
 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




Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
Andrew,

my application is of customer service tries to recharge the balance on a
pin, and it is over their charge limit (the customer service personnel) then
I was thinking I would display a header for a few seconds telling them the
recharge failed, and why.  however, I think I will just out it in
highlighted text instead (and flashing if I can figure that out).

Jeff
Andrew Brampton [EMAIL PROTECTED] wrote in message
002b01c2b2d6$37fba7a0$4fc40650@andrew">news:002b01c2b2d6$37fba7a0$4fc40650@andrew...
 I beleive you can use output buffering to stop anything from being
displayed
 until the very last moment. Or you can code your page with tables. I know
IE
 wont' render a table until the last /table (I beleive), so this could
stop
 your html from showing.

 Or if there is going to be a long pause, you could make a intermediate
page
 that displays this will take minute. This page would have a meta refresh
 that keeps refreshing itself checking the status of your job. Once the job
 is complete on the next refresh it will notice the job is done and voila
 display the results.

 Andrew
 - Original Message -
 From: Jeff Bluemel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, January 03, 2003 2:56 AM
 Subject: [PHP] way to insert timer / pause?


  if there a command, or a way I can put say a 5 second, or a 10 second
 pause
  which will make it so it will output x amount of html, and then
continue?
  or if I can pause it will it not display any of the html until the
entire
  script has ran?
 
 
 
  --
  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




Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Michael J. Pawlowsky


Thank god the blink tag in HTML was removed.
Don't know how long you've been working on sites,
but I started at the same time the first NSCA Mosaic browser came out. About 10 years 
now.

They had blink/blink back then, and everyone starting using it just about 
everywhere!
Imagine trying to read complete pages that were blinking.

The first HTML chats would allow tags inserted...
so someone would open a blink tag and not close it to  make the whole page blink.

Anyways... the way I would do it today is to make an animated gif with the text 
blinking and just load that.

Mike




*** REPLY SEPARATOR  ***

On 02/01/2003 at 9:52 PM Jeff Bluemel wrote:


highlighted text instead (and flashing if I can figure that out).




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




Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
thats a good idea Mike...  thanks for the suggestion.


Michael J. Pawlowsky [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...


 Thank god the blink tag in HTML was removed.
 Don't know how long you've been working on sites,
 but I started at the same time the first NSCA Mosaic browser came out.
About 10 years now.

 They had blink/blink back then, and everyone starting using it just
about everywhere!
 Imagine trying to read complete pages that were blinking.

 The first HTML chats would allow tags inserted...
 so someone would open a blink tag and not close it to  make the whole
page blink.

 Anyways... the way I would do it today is to make an animated gif with the
text blinking and just load that.

 Mike




 *** REPLY SEPARATOR  ***

 On 02/01/2003 at 9:52 PM Jeff Bluemel wrote:


 highlighted text instead (and flashing if I can figure that out).






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