Posted by Jerry Stuckle on 02/18/06 16:33
Janwillem Borleffs wrote:
> 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
>
>
Won't work. You can't send a header call after ANY output.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|