Man speichert nie mehr in einer Datenbank, als notwendig. Normalisierung schimpft sich das.
Sieh Dir das mal an:
PHP-Code:
<?php
$f=file('foo.txt');
for ($i=0; $i<count($f); $i++) {
if (strstr($f[$i], 'Total of')) {
preg_match_all("/Users of (.*):.*Total of (d*) licenses? issued; Total of (d*) licenses? in use/isU", $f[$i], $temp);
$data[]=array('program' => $temp[1][0],
'issued' => $temp[2][0],
'used' => $temp[3][0]);
}
}
print_r($data);
exit;
?>