From b37f7b0f6ef4e58ff3aaecf7584d5242875cce74 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 14 Jul 2016 13:08:30 +0800 Subject: [PATCH] UpdateDatabase.php --- UpdateDatabase.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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(); + } + } -- 2.39.2