You are here: Re: "header" call doesn't work before lenghty operation « PHP Programming Language « IT news, forums, messages
Re: "header" call doesn't work before lenghty operation

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
==================

 

Navigation:

[Reply to this 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

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