continue;
}
- $cmd = "$mysql_cmd -f < " . escapeshellarg($fn) ;
+ $cmd = "$mysql_cmd -f < " . escapeshellarg($fn) ." 2>&1" ;
echo basename($dir).'/'. basename($fn) . '::' . $cmd. ($this->cli ? "\n" : "<BR>\n");
while(!feof($fp))
{
// send the current file part to the browser
- $line = fread($fp, 1024);
- echo $line;
+ $line = trim(fgets($fp, 1024));
+ echo '->>> ' . $line . " <<<---\n";
+ echo "--";
+
+
// flush the content to the browser
flush();
}