Beerbar
-
Posts
4 -
Joined
-
Last visited
Never
Posts posted by Beerbar
-
-
I understand.
If anyone has any suggestions on the best way to search syslog from a web interface, I'm all ears. The file I need to search grows very large. -
I am trying use php to search my mail info log for email addresses to try and stay away from having to create user accounts on the system.
My problem is that I want to have the results show up on new lines, without <PRE> I can not seem to figure out how to do that, everything just splatters on the screen. The problem with <PRE> is that the output is all on one line but its a mile long. How can I get it to wrap nicely?
[code]
if (validate_email($_POST['email']))
{
echo "Checking <b>/var/log/mail/info!</b><br><br/>";
echo "<PRE>";
$outcome = sys_tem("sudo /usr/bin/tac /var/log/mail/info |grep -i ".$_POST['email']."", $results);
foreach ($results as $result) echo $result;
echo "</PRE>";
}
[/code] -
OK, I know this is a silly question, but I'm a newb and can't find out how to change the font color for the headers when I am making a table with Pear HTML_TABLE. Obviously "FONT COLOR"=>"WHITE" does not work, I tried a bunch of different combos and searched for anything that looked like it may work.
This is what I have:
$header1 = array("Hits", "Name", "First", "Last");
$attributes = array("bgcolor"=>"#376589", "FONT COLOR"=>"WHITE");
$table->addRow($header1, $attributes, "TH");
Any help is appreciated.
sys_tem()
in PHP Coding Help
Posted
I will look at syslog-ng and the frontend php-syslog-ng.