Getting a list of COM Domain objects in Windows XP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I am new to PHP. I found the below code at

Example 3. foreach in PHP 5
$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

Site Timeline