Getting a list of COM Domain objects in Windows XP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AViS

    #1

    Getting a list of COM Domain objects in Windows XP

    Hi,

    I am new to PHP. I found the below code at http://in.php.net/com

    Example 3. foreach in PHP 5
    =============== ==============
    <?php
    $domainObject = new COM("WinNT://Domain");
    foreach ($domainObject as $obj) {
    echo $obj->Name . "<br />";
    }
    ?>

    But I get no response from the browser (both IE and Firefox 1.0.7). I
    wrote a few php pages that DO NOT access COM objects, and all the pages
    work fine.

    I am running php 5/ Apache 2.2.3/ Win XP SP2

    Thanks in advance
    Siv

Working...