I've to do the Regex in a While loop bc its to much data to do it in once. By now I can go throw the Data and the regex also works but the Data get not stored. So How can I do this?
This is my code now:
$handle = @fopen($PathToFile, "r");
if ($handle) {
while (($buffer = fgets($handle, 4096)) !== false) {
if (preg_match_all('/^\w+\s+\d+\s('. $SelectedTime .':\d+.\d+).\d+.\d+\s(.+)/im', $buffer, $matches, PREG_SET_ORDER)) {
$decodeData[] .= $matches;
}
else {
}
}
var_dump($decodeData);
}
fclose($handle);
For help I would be really glad