Class 'COM' not found

Hallo zusammen,
hab ein Script (weiss leider nicht mehr woher - vermtl. RS) IPS-System-Monitoring. Das bringt mir (seit update auf 2.7) in Zeile 26 den Fehler Class ‚COM‘ not found.
Zeile 26:

 $fsobj = new COM("Scripting.FileSystemObject");

Das komplette Script (evtl erkennts ja jemand):

<?
// ---- Konfig: Variablen deklarieren ------------------------------------------
$ips_db_groesse_id = 39105 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS_DB Größe]*/ ;
$ips_db_zuwachs_id = 10856 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS-DB Zuwachs]*/ ;
$datei = IPS_GetKernelDir().'db\logging.db';
$ips_objects_id = 43122 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS Objects]*/ ;
$ips_profiles_id = 11565 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS Profiles]*/ ;
$ips_scripts_id = 28704 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS Scripts]*/ ;
$ips_variables_id = 33595 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS Variables]*/ ;
$ips_instances_id = 30740 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS Instances]*/ ;
$ips_categories_id = 25017 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS Categorys]*/ ;
$ips_links_id = 34994 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS Links]*/ ;
$ips_modules_id = 52180 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS Modules]*/ ;
$ips_events_id = 43613 /*[System\IPS System-Monitoring\IPS System-Monitoring\IPS-Statistik\IPS Events]*/ ;

// --- Konfig Ende -------------------------------------------------------------

// --- Script ------------------------------------------------------------------
// DB-Grösse herausfinden
// Dateigrösse grösser 2GB ermitteln (Tipp Kronos 11.07.2012)
function getSize($file) {
 $size = filesize($file);
 if (!(strtoupper(substr(PHP_OS, 0, 3)) == 'WIN'))
 $size = trim(`stat -c%s $file`);
 else{
 $fsobj = new COM("Scripting.FileSystemObject");
 $f = $fsobj->GetFile($file);
 $size = $f->Size;
 }

 return $size;
 }
$groesse = getSize("$datei");
$groesse = $groesse/1024/1024;
$groesse = round($groesse, 2);

// DB-Werte in Var schreiben
setValueFloat($ips_db_groesse_id, $groesse);
setValueFloat($ips_db_zuwachs_id, $groesse);
//echo "Die IPS-Datenbank ist $groesse MB gross.";

// Anzahl IPS Objekte ermitteln
$array = IPS_GetObjectList();
$count = count($array);
setValueInteger($ips_objects_id, $count);
//echo "Anzahl Objekte = $count - ";
$array =array();

// Anzahl IPS Profile ermitteln
$array = IPS_GetVariableProfileList();
$count = count($array);
setValueInteger($ips_profiles_id, $count);
//echo "Anzahl Profile = $count - ";
$array =array();

// Anzahl IPS Sripte ermitteln
$array = IPS_GetScriptList();
$count = count($array);
setValueInteger($ips_scripts_id, $count);
//echo "Anzahl Scripte = $count - ";
$array =array();

// Anzahl IPS Variablen ermitteln
$array = IPS_GetVariableList();
$count = count($array);
setValueInteger($ips_variables_id, $count);
//echo "Anzahl Variablen = $count - ";
$array =array();

// Anzahl IPS Instanzen ermitteln
$array = IPS_GetInstanceList();
$count = count($array);
setValueInteger($ips_instances_id, $count);
//echo "Anzahl Instanzen = $count - ";
$array =array();

// Anzahl IPS Kategorien ermitteln
$array = IPS_GetCategoryList();
$count = count($array);
setValueInteger($ips_categories_id, $count);
//echo "Anzahl Kategorieen = $count - ";
$array =array();

// Anzahl IPS Links ermitteln
$array = IPS_GetLinkList();
$count = count($array);
setValueInteger($ips_links_id, $count);
//echo "Anzahl Links = $count - ";
$array =array();

// Anzahl IPS Module ermitteln
$array = IPS_GetModuleList();
$count = count($array);
setValueInteger($ips_modules_id, $count);
//echo "Anzahl Module = $count - ";
$array =array();

// Anzahl IPS Events ermitteln
$array = IPS_GetEventList();
$count = count($array);
setValueInteger($ips_events_id, $count);
//echo "Anzahl Events = $count - ";
$array =array();

?>

Hat das sonst noch jemand? Hat jemand eine Lösung?

Danke für Eure Antworten,

php_com_dotnet.dll, entweder hier

oder die im nächsten Artikel beschriebene Vorgehensweise.

Gruß
Bruno

Danke Bruno für die Antwort auf meine Anfängerfrage. Hab zwar die Suche bemüht, aber leider dieses Thema nicht gefunden.
Funktioniert. Bis jetzt.

Bis zur nächsten php-Version :wink: