So this is the error I am getting basically.
![[Image: zku7z8k.png]](https://i.imgur.com/zku7z8k.png)
Here is the code:
Basically, I have a folder full of logs, I want it to print out every IP that is connected with this username, but removing the duplicates and looking through all the .log files.
![[Image: zku7z8k.png]](https://i.imgur.com/zku7z8k.png)
Here is the code:
PHP Code
<?php
error_reporting(E_STRICT);
$name = trim(strtolower($_GET['name']));
$name = str_replace(".", "\.", $name);
$name = str_replace("'", "\'", $name);
$name = str_replace("_", "\_", $name);
$log = array_pop(glob('logs/debug-*-*.log'));
$contents = file_get_contents($log);
if(preg_match('/' . $name . '.*?-r(\d+\.\d+\.\d+\.\d+)/', $contents, $results))
{
echo $results[1];
}
else
{
if($error)
{
echo 'That user is not in our DB, please resovle them first!';
}
}
?>Basically, I have a folder full of logs, I want it to print out every IP that is connected with this username, but removing the duplicates and looking through all the .log files.
![[Image: 42PYpC3.png]](https://i.imgur.com/42PYpC3.png)


