in reply to read from network security log file and display lines as alert boxes

Hi whistler

At first glance on snippet 1, your increment of $i should be placed after the closing bracket of the IF block.
It appears that your $i value is too early which throws off your HIDE statement. Also, I would change ++$i to $i++.

Here's a reference for that Auto-Increment-and-Decrement

This is just at a glance , Hope this helps
Good Luck

  • Comment on Re: read from network security log file and display lines as alert boxes