on 12/9/02 9:35 AM, dufronte at [EMAIL PROTECTED] appended the following
bits to my mbox:
> Actually, I want to make a script that confirm the user to wait for 10
> seconds before proceed to the next step. First the message "Please wait
> for 10 seconds while we're processing your request..." will be shown to
> user, then at the same time I want to delay the processing for 10
> seconds with sleep() function.
> print("Please wait for 10 seconds while we're processing your
> request..."); sleep(10);
> $query="insert into......";
> How could I fix it ??? Please help me...
The flush() option recommended by some is not compatible with all user
agents. Another way to do what you want is to have a separate page before
the "processing page". Basically, have a page that says:
"Please wait for 10 seconds while processing your request..."
processing script. The processing script would contain:
The browser will continue to show your processing request page while waiting
for the processing finished page to show up, which will take at least 10
seconds because of the sleep(10) command.
Why do you want to sleep instead of giving the results to the user as soon
as they are ready? Is it a security issue so the server doesn't get flooded
with automated requests?
I'm inhaling Caesar's last gasp...
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php