Reply to selfreferencing script with output

Your name:

Reply:


Posted by Sabine on 10/21/70 11:27

Hello to all,

I have 2 scripts ( preparing about 1000 mails for pear's mail-queue and
sending them) which shall be started by the user.
There are
- limitations of the provider for the duration of the scripts
- no cronjobs

So I had the idea to write a selfreferencing script like that:

$begin= intval($_GET["begin"]);
$allMails = 1000;

//... prepare / send a portion of for example 50 mails

if (($begin+ 50) < $allMails) {
header("Location: script.php?begin=".($begin+ 50));
} else {
echo "Done!";
}

But I want to show the user some output like a statusbar (eventually
with pear's Html_Progress) or something like that so he knows the script
is still working.

Has anybody of you an idea, a tip for me how to do it?
I don't see how I can do it within the construct above.
Is there an alternative to it?

Thanks in advance for your answers
Sabine

[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

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