Reply to Re: "header" call doesn't work before lenghty operation

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация