Back
$line) { if($i == 0) { $columns = preg_split('/ +/', $line); foreach($columns as $column) { echo '
' . htmlentities($column) . "
\n"; } echo "
\n"; echo "
\n"; echo "
\n"; for($i = 1; $i < count($columns); $i++) { $regExpr .= '([^ ]+) +'; } $regExpr .= '(.*)$'; } else { //if(strpos($line, "youtube-dl") === FALSE) { // continue; //} if(!preg_match('/' . $regExpr . '/', $line, $matches)) { continue; } array_shift($matches); if($matches[0] != 'www-data') { continue; } echo "
\n"; foreach($matches as $match) { echo '
' . htmlentities($match) . "
\n"; } echo "
\n"; } } ?>