UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Thu, 14 Jul 2016 05:08:30 +0000 (13:08 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Jul 2016 05:08:30 +0000 (13:08 +0800)
UpdateDatabase.php

index 0a3c07a..c02843a 100644 (file)
@@ -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(); 
+                } 
+                
             
                 
         }