Hello,
I don't seem to be able to get this working right. I have the irssi logs configured within irssi as you suggested, and verified that they show up in the irssi conf file.
I also made sure I have the symlink in the correct location.
However when I try and browse the site, everything loads except the logs. When I check the Apache logs, I see this:
[Thu Oct 25 19:20:35 2018] [error] PHP Warning: Invalid argument supplied for foreach() in /home/admin/web/public_html/index.php on line 19
When looking at line 19 on index.php, it's the foreach line in the below snippet:
<?php
foreach(glob('logs/*', GLOB_ONLYDIR) as $dir) {
$dir = str_replace('logs/', '', $dir);
echo "<li><a data-target=\"#\" data-toggle=\"pill\" href=\"#\" onclick=\"changeChannel('$dir')\">$dir</a></li>";
}
?>
Any ideas?
Hello,
I don't seem to be able to get this working right. I have the irssi logs configured within irssi as you suggested, and verified that they show up in the irssi conf file.
I also made sure I have the symlink in the correct location.
However when I try and browse the site, everything loads except the logs. When I check the Apache logs, I see this:
When looking at line 19 on index.php, it's the
foreachline in the below snippet:Any ideas?