Well the reason it worked on my site is because my webhost uses linux,
and my localhost is windows.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You could try sending all the data to the client at once then achieving
the delay effect with JavaScript perhaps? That way, you are not reliant
on external factors like connection speed.
On Thu, May 12, 2005 8:38 pm, James Williams said:
> I just tried a couple of output_buffering on a test script
On Thu, May 12, 2005 8:38 pm, James Williams said:
> I just tried a couple of output_buffering on a test script I made and
> it won't work... It simply waits for 10 seconds then displays
> everything... Kinda sucks.
If you're going to flush() and ob_flush() that much, you might as well not
use ob
Okay... the difference is between Apache + PHP for windows, and Apache
+ PHP for unix... it works on linux / unix... but not on windows...
check it out.
http://www.jamwil.com/misc/flush.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I just tried a couple of output_buffering on a test script I made and
it won't work... It simply waits for 10 seconds then displays
everything... Kinda sucks.
On 5/12/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Thu, May 12, 2005 12:39 pm, [EMAIL PROTECTED] said:
> > I want to create a scrip
On Thu, May 12, 2005 12:39 pm, [EMAIL PROTECTED] said:
> I want to create a script that displays all names from a database once per
> second.
> A part of the script look like this.
>
> for ($i=0; $i<$total_names; $i++)
> {
> echo "name";
http://php.net/flush
> sleep (1);
> }
On 5/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to create a script that displays all names from a database once per
> second.
> A part of the script look like this.
>
> for ($i=0; $i<$total_names; $i++)
> {
> echo "name";
> sleep (1);
> }
>
> The sc
Hi,
I want to create a script that displays all names from a database once per
second.
A part of the script look like this.
for ($i=0; $i<$total_names; $i++)
{
echo "name";
sleep (1);
}
The scipt works fine but it displays all names at once. I want to display the
first name, then
Hi,
I want to create a script that displays all names from a database once per
second.
A part of the script look like this.
for ($i=0; $i<$total_names; $i++)
{
echo "name";
sleep (1);
}
The scipt works fine but it displays all names at once. I want to display the
first nam
It is exactly what you need. And you can lower the sleep time, I think 1
or 2 seconds are just enough.
Glenn Gasner wrote:
The php.net documentation for the sleep and usleep functions has me
confused. I'm using shared hosting and I need to email my whole mailing
list while not clogging the share
The php.net documentation for the sleep and usleep functions has me
confused. I'm using shared hosting and I need to email my whole mailing
list while not clogging the shared mail server. What I'm trying to do is
put a pause between each email sent (like 10 seconds) so I can set it up to
send a t
:[EMAIL PROTECTED]]
Sent: 23 July 2001 02:38
To: drb
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] sleep() function question
I know very little about PHP, but in other languages, what u describe
happens because the webserver doesn't send the output until the excution is
done...
But you can make it
ooking, I found "ob_implicit_flush" that may help
as well..
Hope I could help
Andrew
- Original Message -
From: "drb" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 22, 2001 11:25 PM
Subject: [PHP] sleep() function question
> just wanted to make sur
just wanted to make sure I was not doing anything incorrectly.
I want to return some values to the screen and then sleep(), then return
more values.
It seems that nothing is returned till the sleep is over and then all the
values are returned at once.
Is this the natural function of sleep();
th
14 matches
Mail list logo