projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
72a3f79
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Thu, 14 Jul 2016 05:08:30 +0000
(13:08 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 14 Jul 2016 05:08:30 +0000
(13:08 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
0a3c07a
..
c02843a
100644
(file)
--- 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" : "<BR>\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();
+ }
+
}