COM issue, problems with return type.
| From: | Merritt, Eric | Date: | Fri, 15 Nov 2002 18:02:39 +0000 |
| Subject: | COM issue, problems with return type. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16974@lists.php.net to get a copy of this message | ||
Hello all,
I am having a little problem with return types from a COM object. Basically
(code follows) I get a collection back from the object and I can not figure
out a way to iterate through this collection. Posted is a snippet of test
code that I hope one of you can help me with.
<?php
echo "Starting\n";
$system = new COM("ADSystemInfo") or die("failed to get system info");
$usr = new COM("WinNT://$system->DomainDNSName/USERID,user") or
die("failed on usr");
$groups = $usr->Groups() or die("fail");
//Groups should be a collection of objects that I can iterate through, but
for
//of me I can't figure out how.
//iteration through group should be here.
?>
If someone could point me to some relevent documentation about this It
would be great.
Thanks,
Eric