How to use the Object returned from COM?

From: Date: Wed, 28 Nov 2001 00:15:15 +0000
Subject: How to use the Object returned from COM?
Groups: php.windows 
Request: Send a blank email to php-windows+get-10620@lists.php.net to get a copy of this message
I want to try a PHP script which use COM Object. But I don't know how to use the data returned from COM. There is an ASP example on how to use the data. ======================= <% Set AU = Server.CreateObject("Persits.AspUser") For Each User in AU.LocalUsers Response.Write User.Name & " (" & User.FullName & ")<BR>" Next %> It will print all users, such as: Administrator, Guest...... (10 users now) ======================= But how to use it in PHP? ======================= <? $AU = new COM("Persits.AspUser"); $user = $AU->LocalUsers; echo $user->Count(); // It will print 10. That's right //I want to access those 10 users. But I can't find a //way. Anybody know how to access it? Thanks. //The $user is an object, not a object array. Any other method I can use to get those data? Actually, I just find the method Count(). Any documents about these? ?> BTW, all class/object function, such as: get_class_methods, get_class_vars, get_object_vars return unuseful results. If I use print_r to print it, it's like: Array {[0]->2}.... That's not what I want. The method Count, I just find it by accident......... Regards, __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com

« previous php.windows (#10620) next »