Einzelnen Beitrag anzeigen
  #38  
Alt 01.12.2004, 10:03:47
azubinator azubinator ist offline
Anfänger
 
Registriert seit: Oct 2004
Ort: Wolfsburg
Beiträge: 93
Ja, sollen wirklich nur diese beiden Werte sein...

PHP-Code:
<html>
<head></head>
<body>
<?php



$f
=file("z:lic.txt");
for (
$i=0$i<10000000$i++) {
$f[$i] = trim($f[$i]);
 if(empty(
$f[$i]))
        continue;

    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]);
            
$vari=$temp[1][0];
            
$vari2=$temp[2][0];
            
$vari3=$temp[3][0];

echo 
"<center>$vari</center><center>$vari2</center><center>$vari3</center><br><br><br>";
}
}

exit;
?>
</body>
</html>
Das ist der original Quelltext, da soll es am Besten gleich mit rein, da es dann ja bei jedem Aufruf der Datei einmal ausgeführt wird.

(Die Werte dienen zu Auswertungszwecken)...

Geändert von azubinator (01.12.2004 um 10:12:23 Uhr)
Mit Zitat antworten