Ideas needed - progression widget / shell command
Mathieu CLABAUT
mathieu.clabaut@free.fr
Wed, 27 Mar 2002 14:24:42 +0100 (CET)
Hello,
I need to give the user a feedback on the evolution of a program
(mkisofs) called by 'system' (or anything similar) in PHP.
The dirty (but working) way is to do something like :
ob_end_flush(); $res=system("$exec_args 2>&1",$retval);
in order to dump the output of the command on the web page (being sure
that their is no table opened in the current web page, which would
prevent HTML to be rendered before the end of the execution in most
browsers).
My question is :
Does somebody know/imagine/have a nicer way to give a feedback to the
user (something like a background process filtering mkisofs output,
and sending only relevant information to an auto-refreshing web page,
or to some javascript.... ?)
Thanks for any idea....
PS. chuck, the locking with Perms seems to work well. Thanks for the
tip.
--
___________________________________________________________________________
Mathieu CLABAUT mailto:mathieu.clabaut@free.fr
DIGINEXT http://mathieu.clabaut.free.fr
45, impasse de la draille, P.A. La Duranne, tel: 04 42 90 82 91
13857 Aix En Provence - cedex 3 fax: 04 42 90 82 80