From: Alan Knowles Date: Thu, 14 Jul 2016 05:08:30 +0000 (+0800) Subject: UpdateDatabase.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b37f7b0f6ef4e58ff3aaecf7584d5242875cce74 UpdateDatabase.php --- diff --git a/UpdateDatabase.php b/UpdateDatabase.php index 0a3c07a8..c02843a9 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -396,7 +396,17 @@ class Pman_Core_UpdateDatabase extends Pman echo basename($dir).'/'. basename($fn) . '::' . $cmd. ($this->cli ? "\n" : "
\n"); - passthru($cmd); + + $fp = popen($cmd, "r"); + while(!feof($fp)) + { + // send the current file part to the browser + $line = fread($fp, 1024); + echo $line; + // flush the content to the browser + flush(); + } + }