Posted by Janwillem Borleffs on 02/18/06 12:45
a wrote:
> Here is a new attempt, but I still don't see the Please Wait page,
> instead it goes straight to the show_result.php
>
You could try something as follows instead:
<?php
if (isset($_GET['pause'])) {
sleep(10);
print 'Done';
exit;
}
print 'Please wait';
header("Refresh: 1;url={$_SERVER['PHP_SELF']}?pause=1");
?>
> flush;
> exit;
>
flush();
exit;
(flush() is a function and should be called with parenthesis, while exit is
a language construct where the parenthesis indeed can be omitted).
JW
Navigation:
[Reply to this message]
|