Hi am trying to display the output of a log via apache
now in bash this displays colours but via web I get the text vi shows which is kind of like colour codes..Code:<?php echo shell_exec('tail -10 /path/log/file.log'); ?>
eg
Code:[36;1
Hi am trying to display the output of a log via apache
now in bash this displays colours but via web I get the text vi shows which is kind of like colour codes..Code:<?php echo shell_exec('tail -10 /path/log/file.log'); ?>
eg
Code:[36;1
because a web page needs html tags or css to do the coloring
It looks like I need some form of ansi output for php.
Does anyone know of this?
Last edited by SlugSlug; November 20th, 2012 at 04:43 PM.
Bookmarks