|
Posted by AViS on 11/23/06 10:49
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
Navigation:
[Reply to this message]
|