#!/usr/bin/php -q ErrorWarningSystemArrayLogin

\n"; $handle = popen('/usr/bin/docker '.implode(' ',$argv),'r'); while (!feof($handle)) { $line = fgets($handle); if ($colorize) { $span = "span"; foreach ($match as $type) foreach ($type['text'] as $text) if (preg_match("/$text/i",$line)) {$span = "span class='{$type['class']}'"; break 2;} echo "<$span>".htmlentities($line).""; } else { echo $line; } flush(); } pclose($handle); ?>